-
Notifications
You must be signed in to change notification settings - Fork 7.1k
#2860 regressed torch.jit.script(densenet161).save #3027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The offenders are the vision/torchvision/models/densenet.py Line 74 in 8c28175
vision/torchvision/models/densenet.py Line 80 in 8c28175
vision/torchvision/models/densenet.py Line 124 in 8c28175
They are only needed for the |
@pmeier let me know if you need me to remove or adapt the typing ignore from densenet or the other similar PRs! |
The breakage is directly with the torchscript convertion, not even @frgfm for now, could you please send a PR removing the I'll investigate why the tests didn't fail here for torchscript, they might be skipped for some reason |
Also, we have |
We should only remove these comments on methods that are called from |
@pmeier we should remove all that are not in a torchscript codepath actually. So So vision/torchvision/models/googlenet.py Line 204 in 8c28175
vision/torchvision/models/googlenet.py Lines 113 to 114 in 8c28175
vision/torchvision/models/densenet.py Line 74 in 8c28175
vision/torchvision/models/densenet.py Line 80 in 8c28175
So indeed, after a second look, only DenseNet seems to be affected. |
This reverts commit 43e4e75.
Uh oh!
There was an error while loading. Please reload this page.
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
pip install --upgrade --pre torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
Environment
Collecting environment information...
PyTorch version: 1.8.0.dev20201118
Is debug build: False
OS: Mac OSX 11.0.1 (x86_64)
GCC version: Could not collect
Clang version: 12.0.0 (clang-1200.0.32.27)
CMake version: version 3.18.4
Python version: 3.8 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Versions of relevant libraries:
[pip] numpy==1.19.0
[pip] torch==1.8.0.dev20201118
[pip] torchtext==0.7.0
[pip] torchvision==0.9.0.dev20201118
[conda] Could not collect
Additional context
@frgfm @fmassa @pmeier #2860
The text was updated successfully, but these errors were encountered: