Set seed for head_masking test
This commit is contained in:
@@ -163,6 +163,7 @@ class CommonTestCases:
|
|||||||
if not self.test_head_masking:
|
if not self.test_head_masking:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
torch.manual_seed(42)
|
||||||
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.output_attentions = True
|
config.output_attentions = True
|
||||||
|
|||||||
Reference in New Issue
Block a user