torch.tensor()
Traceback (most recent call last):
File “”, line 1, in
TypeError: ‘module’ object is not callable
torch.tensor([0,2])
Traceback (most recent call last):
File “”, line 1, in
TypeError: ‘module’ object is not callable
I had the same problem. Upgrading to 0.4 works, however I have to use 0.3 for other reasons. Is there any way to work around this issue but still using 0.3 version? (The reason to avoid 0.4 is that the custom function seems to be very slow, so…) Can anyone help me on this? Thank you.
For 0.3 version, I want to add a learnable parameter like "self.scale = nn.Parameter(torch.tensor([10.0]), requires_grad=True) in nn.Module. But it throws an error, TypeError: ‘module’ object is not callable. If I use a tensor, torch.FloatTensor([10.0]), it is not learnable, right?