Typing Error in nn.Module · Issue #31765 · pytorch/pytorch ...
github.com › pytorch › pytorchJan 01, 2020 · PyTorch version: 1.3.1 Is debug build: No CUDA used to build PyTorch: None OS: Mac OSX 10.15.2 GCC version: Could not collect CMake version: version 3.16.1 Python version: 3.6 Is CUDA available: No CUDA runtime version: No CUDA GPU models and configuration: No CUDA Nvidia driver version: No CUDA cuDNN version: No CUDA Versions of relevant libraries: [pip3] numpy==1.18.0 [pip3] torch==1.3.1 ...
Make it possible to use mypy to typecheck code that uses ...
github.com › pytorch › pytorchJan 30, 2019 · Hey @csvoss, nice to see a familiar face :). Here's my personal thinking on the matter. I've worked on a few (smaller than PyTorch) codebases with Python type checking, and the primary way we keep the type annotations correct in these settings is to actually typecheck all of the code in our codebase that uses the types, so you can check both inside and outside the function are consistent with ...