How can I solve the pytorch/pylint error: torch.tensor is not callable?

后端 未结 0 423
梦谈多话
梦谈多话 2020-12-01 00:51

when I make in python

import syft as sy
import torch

hook = sy.TorchHook(torch)
data = torch.tensor([[1.,1],[0,1],[1,0],[0,0]])

an error cam

相关标签:
回答
  • 消灭零回复
提交回复
热议问题