Created
September 26, 2017 18:21
-
-
Save mbforbes/e7efd0415caacbbc912c1370bcbdafc8 to your computer and use it in GitHub Desktop.
Running `stubgen --recursive torch` then manually fixing some reserved keyword, default args, and missing declaration errors. It wants other libs and still can't find cuda.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
regression.py:21: error: No library stub file for module 'numpy' | |
regression.py:21: note: (Stub files are from https://github.com/python/typeshed) | |
dataio.py:17: error: Cannot find module named 'tqdm' | |
dataio.py:17: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help) | |
viewer.py:16: error: Cannot find module named 'visdom' | |
viewer.py:30: error: Name 'torch.Tensor' is not defined | |
viewer.py:45: error: Module has no attribute "Tensor" | |
viewer.py:107: error: Module has no attribute "Tensor" | |
dataio.py:34: error: Name 'torch.Tensor' is not defined | |
dataio.py:43: error: Name 'torch.Tensor' is not defined | |
dataio.py:49: error: Module has no attribute "Tensor" | |
dataio.py:61: error: Name 'torch.Tensor' is not defined | |
dataio.py:71: error: Name 'torch.Tensor' is not defined | |
dataio.py:80: error: Name 'torch.Tensor' is not defined | |
dataio.py:99: error: Name 'torch.Tensor' is not defined | |
regression.py:38: error: Name 'torch.cuda.FloatTensor' is not defined | |
regression.py:50: error: "IntTensor" has no attribute "type" | |
regression.py:103: error: Argument 1 to "len" has incompatible type "FloatTensor"; expected "Sized" | |
regression.py:104: error: Argument 1 to "len" has incompatible type "FloatTensor"; expected "Sized" | |
regression.py:105: error: Module has no attribute "cuda" | |
regression.py:125: error: Name 'torch.cuda.FloatTensor' is not defined | |
regression.py:125: error: Name 'torch.cuda.IntTensor' is not defined | |
regression.py:139: error: Name 'torch.cuda.FloatTensor' is not defined | |
regression.py:139: error: Module has no attribute "cuda" | |
regression.py:170: error: Name 'torch.cuda.FloatTensor' is not defined | |
regression.py:171: error: Name 'torch.cuda.IntTensor' is not defined | |
regression.py:182: error: Module has no attribute "cuda" | |
regression.py:185: error: Module has no attribute "cuda" | |
regression.py:191: error: Name 'torch.cuda.FloatTensor' is not defined | |
regression.py:191: error: Name 'torch.cuda.IntTensor' is not defined | |
regression.py:206: error: Name 'torch.cuda.IntTensor' is not defined | |
regression.py:206: error: "IntTensor" has no attribute "cuda" | |
regression.py:207: error: Name 'torch.cuda.FloatTensor' is not defined | |
regression.py:207: error: "FloatTensor" has no attribute "cuda" | |
regression.py:208: error: Name 'torch.cuda.IntTensor' is not defined | |
regression.py:208: error: "IntTensor" has no attribute "cuda" | |
regression.py:209: error: Name 'torch.cuda.FloatTensor' is not defined | |
regression.py:209: error: "FloatTensor" has no attribute "cuda" | |
regression.py:212: error: Argument 1 to "least_squares" has incompatible type "int"; expected "FloatTensor" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment