mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
[Tests] Improve flax test_attention_outputs (#21486)
improving flax tests
This commit is contained in:
parent
c88b11c591
commit
9e40bba6ba
@ -650,6 +650,9 @@ class FlaxModelTesterMixin:
|
||||
check_hidden_states_output(inputs_dict, config, model_class)
|
||||
|
||||
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.return_dict = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user