How to fix pylint complaints like "torch.tensor is not callable", and "Pylint: Parameters differ from overridden 'forward' method"?

Hi,
I am new to PyTorch and I am using Pycharm with Pylint plugin to write my code.

I have some annoying fake errors and warnings coming from Pylint, saying that I have some problem like “torch.tensor is not callable”, and “Pylint: Parameters differ from overridden ‘forward’ method”. However my code runs indeed properly.

So far, I have tried to add numpy and torch to the .pylintrc file at “ignored-classes”, “ignored-modules” and “generated-members”, but cannot ignore all the fake msgs. So any other ideas?

Thx in advance.
Geli

1 Like