Pycharm/Pytorch - 'tensor' is not callable

Viewed 6563

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.

1 Answers
Related