3

Since Numpy array is Float64 by default. How do I convert to PyTorch tensor to give a FLoat32 type and not 64?

I tried torch.from_numpy and it gave a Float64 type.

James Z
  • 12,209
  • 10
  • 24
  • 44
Lamosh
  • 41
  • 5

0 Answers0