Reputation: 7383
When creating a pytorch (1.0) tensor :
import torch
W = torch.tensor(([1.0]))
Pycharm (2018.3.1) gives me the following warning :
'tensor' is not callable less... (Ctrl+F1)
Inspection info: This inspection highlights attempts to call objects which are not callable, like, for example, tuples
My code works fine (tensor() is callable) but I'd like to understand and get rid of this warning.
Upvotes: 7
Views: 6697
Reputation: 6115
This has been a known issue to them . The moderator replied with:
We will fix this in the next release. It’s being tracked at https://github.com/pytorch/pytorch/issues/7318
However, the reported issue was on PyTorch v0.4.1
Upvotes: 3