Converting from Numpy Array to PyTorch Tensor

2.2k Views Asked by At

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.

0

There are 0 best solutions below