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
f3a1efd1
Unverified
Commit
f3a1efd1
authored
Nov 22, 2022
by
Sylvain Gugger
Browse files
Skip failing test
parent
624ae09f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/plbart/test_modeling_plbart.py
tests/models/plbart/test_modeling_plbart.py
+1
-1
No files found.
tests/models/plbart/test_modeling_plbart.py
View file @
f3a1efd1
...
@@ -409,7 +409,7 @@ class PLBartBaseIntegrationTest(AbstractSeq2SeqIntegrationTest):
...
@@ -409,7 +409,7 @@ class PLBartBaseIntegrationTest(AbstractSeq2SeqIntegrationTest):
src_text
=
[
"Is 0 the first Fibonacci number ?"
,
"Find the sum of all prime numbers ."
]
src_text
=
[
"Is 0 the first Fibonacci number ?"
,
"Find the sum of all prime numbers ."
]
tgt_text
=
[
"0 the first Fibonacci number?"
,
"the sum of all prime numbers.......... the the"
]
tgt_text
=
[
"0 the first Fibonacci number?"
,
"the sum of all prime numbers.......... the the"
]
#
@unittest.skip("This test is broken,
still generates english
")
@
unittest
.
skip
(
"This test is broken,
fix me gante
"
)
def
test_base_generate
(
self
):
def
test_base_generate
(
self
):
inputs
=
self
.
tokenizer
([
self
.
src_text
[
0
]],
return_tensors
=
"pt"
).
to
(
torch_device
)
inputs
=
self
.
tokenizer
([
self
.
src_text
[
0
]],
return_tensors
=
"pt"
).
to
(
torch_device
)
translated_tokens
=
self
.
model
.
generate
(
translated_tokens
=
self
.
model
.
generate
(
...
...
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