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

Move test model folders #17034

Merged
merged 33 commits into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
babdc23
test - to be revert
ydshieh Apr 27, 2022
8ff0bde
temp change to generate new cache - to be reverted
ydshieh Apr 27, 2022
d09b62b
temp change to generate new cache - to be reverted
ydshieh Apr 27, 2022
75ff03c
clean-up
ydshieh Apr 27, 2022
ffbcad9
move test model folders (TODO: fix imports and others)
ydshieh Apr 26, 2022
7851bdb
fix (potentially partially) imports (in model test modules)
ydshieh Apr 26, 2022
fed0b1d
fix (potentially partially) imports (in tokenization test modules)
ydshieh Apr 26, 2022
c439b16
fix (potentially partially) imports (in feature extraction test modules)
ydshieh Apr 26, 2022
f35f1c5
fix import utils.test_modeling_tf_core
ydshieh Apr 26, 2022
2d801d2
fix path ../fixtures/
ydshieh Apr 26, 2022
7d1d1a5
fix imports about generation.test_generation_flax_utils
ydshieh Apr 26, 2022
ab59261
fix more imports
ydshieh Apr 26, 2022
ae4827b
fix fixture path
ydshieh Apr 26, 2022
faba7b6
fix get_test_dir
ydshieh Apr 26, 2022
8c9600e
update module_to_test_file
ydshieh Apr 26, 2022
732ca46
fix get_tests_dir from wrong transformers.utils
ydshieh Apr 26, 2022
16e269e
update config.yml (CircleCI)
ydshieh Apr 26, 2022
6b52d1f
fix style
ydshieh Apr 26, 2022
e971915
remove missing imports
ydshieh Apr 26, 2022
4b0320e
update new model script
ydshieh Apr 26, 2022
8b470d0
update check_repo
ydshieh Apr 26, 2022
3dad271
update SPECIAL_MODULE_TO_TEST_MAP
ydshieh Apr 26, 2022
790f0d9
fix style
ydshieh Apr 26, 2022
c31b9c9
add __init__
ydshieh Apr 27, 2022
39966aa
update self-scheduled
ydshieh Apr 27, 2022
c90b35c
fix add_new_model scripts
ydshieh Apr 27, 2022
579cdbf
check one way to get location back
ydshieh Apr 27, 2022
fa9cfd4
python setup.py build install
ydshieh Apr 27, 2022
021ae85
fix import in test auto
ydshieh May 1, 2022
825581f
update self-scheduled.yml
ydshieh May 1, 2022
b83abd8
update slack notification script
ydshieh May 1, 2022
0e44f67
Add comments about artifact names
ydshieh May 2, 2022
9bc8e1a
fix for yolos
ydshieh May 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix (potentially partially) imports (in feature extraction test modules)
  • Loading branch information
ydshieh committed May 3, 2022
commit c439b16122c2f988ba28b42949194bde139df9cb
2 changes: 1 addition & 1 deletion tests/models/beit/test_feature_extraction_beit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/clip/test_feature_extraction_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/convnext/test_feature_extraction_convnext.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/deit/test_feature_extraction_deit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/detr/test_feature_extraction_detr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from transformers.testing_utils import require_torch, require_vision, slow
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/dpt/test_feature_extraction_dpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.file_utils import is_torch_available, is_vision_available
from transformers.testing_utils import require_torch, require_vision

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/glpn/test_feature_extraction_glpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/imagegpt/test_feature_extraction_imagegpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from transformers.testing_utils import require_torch, require_vision, slow
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_pytesseract, require_torch
from transformers.utils import is_pytesseract_available, is_torch_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/vilt/test_feature_extraction_vilt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down
2 changes: 1 addition & 1 deletion tests/models/vit/test_feature_extraction_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from transformers.testing_utils import require_torch, require_vision
from transformers.utils import is_torch_available, is_vision_available

from ..test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs
from ...test_feature_extraction_common import FeatureExtractionSavingTestMixin, prepare_image_inputs


if is_torch_available():
Expand Down