vscode ‘torch’ has no ‘xxx’ member

vscode User settings中加上

"python.linting.pylintArgs": [
    "–errors-only",
    "–generated-members=numpy.* ,torch.* ,cv2.* , cv.*",
]