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