Module 'torch' has no 'xx' member error in pytorch in VScode

       Because there are too many code variables, use Sublime text and can jump well, so use VsCode artifact. After importing the Pytorch module, Module 'torch' has no cat member appears, so find a solution online. This blogger's article is very useful and solved all the way.

       My version of python3.7 does not have Anacada. The solution is to open the settings and search for python .linting.pylintArgs. Then there will be an add path below. Use Everything to search for the path. My path has been posted. Then add this path to the Added inside.

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/andrew-address/p/12740017.html