Torch.max not recognized by visual studio code pylint

its a bit of a silly thing because it works but, it may point out to some linting required in the source

I have a function that calls torch.max(some_tensor, dim=1) and it works just fine; but for some reason visual studio code flags it as [E1101 module ‘torch’ has no ‘max’ member]. Im using the correct interpreter pointing to torch 0.4.0

1 Like