Skip to content

Commit

Permalink
Add torch.* to generated members.
Browse files Browse the repository at this point in the history
Fix for pytorch/pytorch#701

Change-Id: I3a652c7de7b4756fa0421c14282928994155ca28
  • Loading branch information
arneki committed Jan 22, 2020
1 parent 8cc11e4 commit 776f484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylintrc
Expand Up @@ -295,7 +295,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local
# 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=.+\.((to)|(from))_numpy
generated-members=.+\.((to)|(from))_numpy,torch\..+

# List of decorators that produce context managers, such as
# contextlib.contextmanager. Add to this list to register other decorators that
Expand Down

0 comments on commit 776f484

Please sign in to comment.