when running this code:
torch.dot(torch.Tensor([2, 3]), torch.Tensor([2, 1]))
I get the result: 0.0
This code run normally on Linux and failed on MacOS…
And also the version of my pytorch is 0.2.0-py27_4cu75
Same here
0.2.0_4 installed through conda, on python 3.6
Any solution?
It could be related to this issue. Could one of you try building pytorch from source and seeing if the problem still exists?
conda upgrade numpy
fixed it for me.
2 Likes
It works for me. THX.