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
9286f0ac
Unverified
Commit
9286f0ac
authored
Oct 25, 2023
by
Arthur
Committed by
GitHub
Oct 25, 2023
Browse files
Skip-test (#27062)
* skip plbart test * nits * update
parent
6cbc1369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/models/plbart/test_modeling_plbart.py
tests/models/plbart/test_modeling_plbart.py
+4
-0
No files found.
tests/models/plbart/test_modeling_plbart.py
View file @
9286f0ac
...
@@ -314,6 +314,10 @@ class PLBartModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMix
...
@@ -314,6 +314,10 @@ class PLBartModelTest(ModelTesterMixin, GenerationTesterMixin, PipelineTesterMix
model
.
generate
(
input_ids
,
attention_mask
=
attention_mask
)
model
.
generate
(
input_ids
,
attention_mask
=
attention_mask
)
model
.
generate
(
num_beams
=
4
,
do_sample
=
True
,
early_stopping
=
False
,
num_return_sequences
=
3
)
model
.
generate
(
num_beams
=
4
,
do_sample
=
True
,
early_stopping
=
False
,
num_return_sequences
=
3
)
@
unittest
.
skip
(
"Failing since #26752"
)
def
test_sample_generate
(
self
):
pass
def
assert_tensors_close
(
a
,
b
,
atol
=
1e-12
,
prefix
=
""
):
def
assert_tensors_close
(
a
,
b
,
atol
=
1e-12
,
prefix
=
""
):
"""If tensors have different shapes, different values or a and b are not both tensors, raise a nice Assertion error."""
"""If tensors have different shapes, different values or a and b are not both tensors, raise a nice Assertion error."""
...
...
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