Pycharm/Pytorch - 'tensor' 不可调用

Pycharm/Pytorch - 'tensor' is not callable

创建 pytorch (1.0) 张量时:

import torch
W = torch.tensor(([1.0]))

Pycharm (2018.3.1) 给我以下警告:

'tensor' is not callable less... (Ctrl+F1) 
Inspection info: This inspection highlights attempts to call objects which are not callable, like, for example, tuples

我的代码工作正常(tensor() 是可调用的)但我想了解并摆脱这个警告。

This has been a known issue to them 。版主回复:

We will fix this in the next release. It’s being tracked at https://github.com/pytorch/pytorch/issues/7318

但是,报告的问题是 PyTorch v0.4.1