import torch
import numpy as np

a = np.zeros((3,3))
b = torch.from_numpy(a).type(torch.float)



AttributeError                            Traceback (most recent call last)
 in ()
3
4 a = np.zeros((3,3))
----> 5 b = torch.from_numpy(a).type(torch.float)
AttributeError: module ‘torch’ has no attribute ‘float’