Getting started
Features
API
License
Convert floating point torch tensor to torch.float32.
Torch tensor with type torch.float32 or other non-float types is kept unchanged.
tensor (torch.Tensor) – Tensor.
tensor – Tensor.
torch.Tensor