module 'torch' has no 'flatten' member code example
Example: Module 'torch' has no 'stack' memberpylint(no-member)
# On VScode: CTRL + Shift + P
# Choose "Preferences: Open Settings (JSON)"
# Add this line into JSON file:
"python.linting.pylintArgs": [
"--generated-members=numpy.* ,torch.*"
]