Skip to content
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

Add torch.compile support for pytorch 2.4 #1690

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Added test cases for classification, detection and recognition

9850455
Select commit
Loading
Failed to load commit list.
Draft

Add torch.compile support for pytorch 2.4 #1690

Added test cases for classification, detection and recognition
9850455
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Aug 30, 2024 in 0s

7 new issues (0 max.) of at least minor severity.

Codacy 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

See this annotation in the file changed.

@codacy-production 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

See this annotation in the file changed.

@codacy-production 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

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/recognition/zoo.py#L56

Trailing whitespace

Check warning on line 29 in doctr/models/zoo.py

See this annotation in the file changed.

@codacy-production 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

See this annotation in the file changed.

@codacy-production 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

See this annotation in the file changed.

@codacy-production 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

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/pytorch/test_models_recognition_pt.py#L184

No exception type(s) specified