OpenPhenom / normalizer.py
recursionaut's picture
testing files upload (#7)
6ded986 verified
raw
history blame contribute delete
173 Bytes
import torch
class Normalizer(torch.nn.Module):
def forward(self, pixels: torch.Tensor) -> torch.Tensor:
pixels = pixels.float()
return pixels / 255.0