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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With