I am facing this problem while try to convert  torch.FloatTensor to numpy
pleas help what is the problem?
import cv2
img=cv2.imread('xx.jpg')
img=cv2.resize(img,(32,32))
img = img.transpose((2,0,1))
img=np.expand_dims(img,axis=0)
img=img/255.0
img=torch.FloatTensor(img)
img=Variable(img)
img = img.cuda()

 output=net(img)

print(output)
print('---------------------------------------------------')

np_array = output.cpu()
print (np_array)
print('---------------------------------------------------')

np_array = np_array.numpy()
print (np_array)
print('---------------------------------------------------')

here wht I got:
Variable containing:
0.1437  0.1254 -0.2880 -0.3866 -0.1179  0.3432 -0.1611 -0.4105  0.0947 -0.7357
[torch.cuda.FloatTensor of size 1x10 (GPU 0)]

Variable containing:
0.1437  0.1254 -0.2880 -0.3866 -0.1179  0.3432 -0.1611 -0.4105  0.0947 -0.7357
of size 1x10]

Traceback (most recent call last):
File “/main.py”, line 186, in 
np_array = np_array.numpy()


AttributeError: numpy