-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
high prioritymodule: internalsRelated to internal abstractions in c10 and ATenRelated to internal abstractions in c10 and ATenmodule: typingRelated to mypy type annotationsRelated to mypy type annotationssmallWe think this is a small issue to fix. Consider knocking off high priority small issuesWe think this is a small issue to fix. Consider knocking off high priority small issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Bug
Pylint returns the error torch.tensor is not callable
To Reproduce
Steps to reproduce the behavior:
import torch
if __name__ == "__main__":
t = torch.tensor([1, 2, 3], dtype=torch.float64)
>>> pipenv run pylint test.py
test.py:4:8: E1102: torch.tensor is not callable (not-callable)
Expected behavior
This shall not raise pylint error
Environment
PyTorch version: 1.2.0
Is debug build: No
CUDA used to build PyTorch: 10.0.130
OS: Ubuntu 18.04.2 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.10.2
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration:
GPU 0: GeForce RTX 2080 Ti
GPU 1: GeForce RTX 2080 Ti
Nvidia driver version: 418.67
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.1
Versions of relevant libraries:
[pip3] numpy==1.17.0
[pip3] torch==1.2.0
[conda] Could not collect
Pytorch installed in Pipenv Environment
pylint==2.3.1
Additional context
None
cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @bhosmer @smessmer @ljk53 @ailzhang @malfet @rgommers @xuzhao9 @gramster
RyoMazda, sachio222, Wuliyuanulb, HarikrishnanBalagopal, neighthan and 50 more
Metadata
Metadata
Assignees
Labels
high prioritymodule: internalsRelated to internal abstractions in c10 and ATenRelated to internal abstractions in c10 and ATenmodule: typingRelated to mypy type annotationsRelated to mypy type annotationssmallWe think this is a small issue to fix. Consider knocking off high priority small issuesWe think this is a small issue to fix. Consider knocking off high priority small issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module