Add torch.compile support for pytorch 2.4 #1690
7 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 7
Complexity increasing per file
==============================
- doctr/models/classification/zoo.py 2
- doctr/models/recognition/zoo.py 2
- doctr/models/detection/zoo.py 2
Complexity decreasing per file
==============================
+ doctr/models/detection/fast/base.py -8
+ tests/pytorch/test_models_classification_pt.py -7
+ tests/pytorch/test_models_recognition_pt.py -6
+ tests/pytorch/test_models_detection_pt.py -11
+ doctr/models/detection/linknet/base.py -8
Clones added
============
- tests/pytorch/test_models_classification_pt.py 2
- tests/pytorch/test_models_recognition_pt.py 6
- tests/pytorch/test_models_detection_pt.py 4
- doctr/models/detection/linknet/base.py 2
Clones removed
==============
+ doctr/models/recognition/parseq/pytorch.py -2
+ doctr/models/zoo.py -2
See the complete overview on Codacy
Annotations
Check notice on line 77 in doctr/models/detection/zoo.py
codacy-production / Codacy Static Code Analysis
doctr/models/detection/zoo.py#L77
Trailing whitespace
Check notice on line 288 in doctr/models/recognition/parseq/pytorch.py
codacy-production / Codacy Static Code Analysis
doctr/models/recognition/parseq/pytorch.py#L288
Trailing whitespace
Check notice on line 56 in doctr/models/recognition/zoo.py
codacy-production / Codacy Static Code Analysis
doctr/models/recognition/zoo.py#L56
Trailing whitespace
Check warning on line 29 in doctr/models/zoo.py
codacy-production / Codacy Static Code Analysis
doctr/models/zoo.py#L29
Redefining built-in 'compile'
Check warning on line 226 in tests/pytorch/test_models_classification_pt.py
codacy-production / Codacy Static Code Analysis
tests/pytorch/test_models_classification_pt.py#L226
No exception type(s) specified
Check warning on line 212 in tests/pytorch/test_models_detection_pt.py
codacy-production / Codacy Static Code Analysis
tests/pytorch/test_models_detection_pt.py#L212
No exception type(s) specified
Check warning on line 184 in tests/pytorch/test_models_recognition_pt.py
codacy-production / Codacy Static Code Analysis
tests/pytorch/test_models_recognition_pt.py#L184
No exception type(s) specified