Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
722bf7ef
Unverified
Commit
722bf7ef
authored
Dec 14, 2022
by
Yih-Dar
Committed by
GitHub
Dec 14, 2022
Browse files
Fix missing `()` in some usage of `is_flaky` (#20749)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
9bafedc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/models/donut/test_feature_extraction_donut.py
tests/models/donut/test_feature_extraction_donut.py
+3
-3
No files found.
tests/models/donut/test_feature_extraction_donut.py
View file @
722bf7ef
...
@@ -106,7 +106,7 @@ class DonutFeatureExtractionTest(FeatureExtractionSavingTestMixin, unittest.Test
...
@@ -106,7 +106,7 @@ class DonutFeatureExtractionTest(FeatureExtractionSavingTestMixin, unittest.Test
def
test_batch_feature
(
self
):
def
test_batch_feature
(
self
):
pass
pass
@
is_flaky
@
is_flaky
()
def
test_call_pil
(
self
):
def
test_call_pil
(
self
):
# Initialize feature_extractor
# Initialize feature_extractor
feature_extractor
=
self
.
feature_extraction_class
(
**
self
.
feat_extract_dict
)
feature_extractor
=
self
.
feature_extraction_class
(
**
self
.
feat_extract_dict
)
...
@@ -139,7 +139,7 @@ class DonutFeatureExtractionTest(FeatureExtractionSavingTestMixin, unittest.Test
...
@@ -139,7 +139,7 @@ class DonutFeatureExtractionTest(FeatureExtractionSavingTestMixin, unittest.Test
),
),
)
)
@
is_flaky
@
is_flaky
()
def
test_call_numpy
(
self
):
def
test_call_numpy
(
self
):
# Initialize feature_extractor
# Initialize feature_extractor
feature_extractor
=
self
.
feature_extraction_class
(
**
self
.
feat_extract_dict
)
feature_extractor
=
self
.
feature_extraction_class
(
**
self
.
feat_extract_dict
)
...
@@ -172,7 +172,7 @@ class DonutFeatureExtractionTest(FeatureExtractionSavingTestMixin, unittest.Test
...
@@ -172,7 +172,7 @@ class DonutFeatureExtractionTest(FeatureExtractionSavingTestMixin, unittest.Test
),
),
)
)
@
is_flaky
@
is_flaky
()
def
test_call_pytorch
(
self
):
def
test_call_pytorch
(
self
):
# Initialize feature_extractor
# Initialize feature_extractor
feature_extractor
=
self
.
feature_extraction_class
(
**
self
.
feat_extract_dict
)
feature_extractor
=
self
.
feature_extraction_class
(
**
self
.
feat_extract_dict
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment