Why Pytorch Type change is not work?
Pytorch is 0.4.0
input:
a = torch.FloatTensor(3, 5)
a.type(torch.IntTensor)
print(a.type())
output:
torch.FloatTensor

the right code is:
a = a.type(torch.IntTensor)