Class: TorchVision::Transforms::ToTensor

Inherits:
Torch::NN::Module
  • Object
show all
Defined in:
lib/torchvision/transforms/to_tensor.rb

Instance Method Summary collapse

Instance Method Details

#forward(pic) ⇒ Object



4
5
6
# File 'lib/torchvision/transforms/to_tensor.rb', line 4

def forward(pic)
  F.to_tensor(pic)
end