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
cc8aec67
Unverified
Commit
cc8aec67
authored
Dec 05, 2022
by
Yih-Dar
Committed by
GitHub
Dec 05, 2022
Browse files
Add `require_torch` to 2 pipeline tests (#20585)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
e7e6d181
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/pipelines/test_pipelines_table_question_answering.py
tests/pipelines/test_pipelines_table_question_answering.py
+2
-0
No files found.
tests/pipelines/test_pipelines_table_question_answering.py
View file @
cc8aec67
...
@@ -481,6 +481,7 @@ class TQAPipelineTests(unittest.TestCase, metaclass=PipelineTestCaseMeta):
...
@@ -481,6 +481,7 @@ class TQAPipelineTests(unittest.TestCase, metaclass=PipelineTestCaseMeta):
)
)
@
slow
@
slow
@
require_torch
def
test_integration_wtq_pt
(
self
):
def
test_integration_wtq_pt
(
self
):
table_querier
=
pipeline
(
"table-question-answering"
)
table_querier
=
pipeline
(
"table-question-answering"
)
...
@@ -574,6 +575,7 @@ class TQAPipelineTests(unittest.TestCase, metaclass=PipelineTestCaseMeta):
...
@@ -574,6 +575,7 @@ class TQAPipelineTests(unittest.TestCase, metaclass=PipelineTestCaseMeta):
self
.
assertListEqual
(
results
,
expected_results
)
self
.
assertListEqual
(
results
,
expected_results
)
@
slow
@
slow
@
require_torch
def
test_integration_sqa_pt
(
self
):
def
test_integration_sqa_pt
(
self
):
table_querier
=
pipeline
(
table_querier
=
pipeline
(
"table-question-answering"
,
"table-question-answering"
,
...
...
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