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
9e40bba6
Unverified
Commit
9e40bba6
authored
Feb 10, 2023
by
Shubhamai
Committed by
GitHub
Feb 10, 2023
Browse files
[Tests] Improve flax test_attention_outputs (#21486)
improving flax tests
parent
c88b11c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/test_modeling_flax_common.py
tests/test_modeling_flax_common.py
+3
-0
No files found.
tests/test_modeling_flax_common.py
View file @
9e40bba6
...
@@ -650,6 +650,9 @@ class FlaxModelTesterMixin:
...
@@ -650,6 +650,9 @@ class FlaxModelTesterMixin:
check_hidden_states_output
(
inputs_dict
,
config
,
model_class
)
check_hidden_states_output
(
inputs_dict
,
config
,
model_class
)
def
test_attention_outputs
(
self
):
def
test_attention_outputs
(
self
):
if
not
self
.
has_attentions
:
self
.
skipTest
(
reason
=
"Model does not output attentions"
)
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
.
return_dict
=
True
config
.
return_dict
=
True
...
...
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