win7 上的pytorch0.4.1,no gpu。
1. 在home目录c:\users\xx\ 里面生成一个.pylintrc文件
On Windows 7, a .pylintrc file in your home directory (typically C:\Users\myusername) will be automatically recognized.
Since creating a file beginning with a dot is not allowed from Windows file explorer, you can create a template using:
pylint --generate-rcfile > .pylintrc
2. 修改.pylintrc文件的对应字段
[TYPECHECK]
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=numpy.*,torch.*
参考: