Skip to content

Instantly share code, notes, and snippets.

@mbforbes
Created September 26, 2017 18:17
Show Gist options
  • Save mbforbes/708eb3f1af1eee91caaa855f9e8e4c13 to your computer and use it in GitHub Desktop.
Save mbforbes/708eb3f1af1eee91caaa855f9e8e4c13 to your computer and use it in GitHub Desktop.
Running `stubgen torch`, looking at errors that result. Need submodules
out/torch/__init__.pyi:21: error: Name '_C' is not defined
out/torch/__init__.pyi:22: error: Name '_C' is not defined
out/torch/__init__.pyi:23: error: Name '_C' is not defined
out/torch/__init__.pyi:24: error: Name '_C' is not defined
out/torch/__init__.pyi:25: error: Name '_C' is not defined
out/torch/__init__.pyi:26: error: Name '_C' is not defined
out/torch/__init__.pyi:27: error: Name '_C' is not defined
out/torch/__init__.pyi:28: error: Name '_C' is not defined
out/torch/__init__.pyi:30: error: Name '_C' is not defined
out/torch/__init__.pyi:35: error: Name '_C' is not defined
out/torch/__init__.pyi:40: error: Name '_C' is not defined
out/torch/__init__.pyi:45: error: Name '_C' is not defined
out/torch/__init__.pyi:50: error: Name '_C' is not defined
out/torch/__init__.pyi:55: error: Name '_C' is not defined
out/torch/__init__.pyi:60: error: Name '_C' is not defined
out/torch/__init__.pyi:65: error: Name '_C' is not defined
regression.py:38: error: Name 'torch.cuda.FloatTensor' is not defined
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:207: error: Name 'torch.cuda.FloatTensor' is not defined
regression.py:208: error: Name 'torch.cuda.IntTensor' is not defined
regression.py:209: error: Name 'torch.cuda.FloatTensor' is not defined
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