pycharm / pytorch-'张量'不可调用

u2g*_*les 6 pycharm pytorch tensor

创建pytorch(1.0)张量时:

import torch
W = torch.tensor(([1.0]))
Run Code Online (Sandbox Code Playgroud)

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
Run Code Online (Sandbox Code Playgroud)

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

And*_*uib 3

这对他们来说是一个已知问题。主持人回复道:

\n\n
\n

我们将在下一个版本中修复此问题。它\xe2\x80\x99s 正在https://github.com/pytorch/pytorch/issues/7318进行跟踪

\n
\n\n

然而,报告的问题是在 PyTorch 上v0.4.1

\n