We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe1e2e commit 490c476Copy full SHA for 490c476
tests/models/test_modeling_common.py
@@ -1989,7 +1989,7 @@ def test_enable_disable_slicing(self):
1989
model = self.model_class(**init_dict).to(torch_device)
1990
1991
inputs_dict.update({"return_dict": False})
1992
- _ = inputs_dict.pop("generator")
+ _ = inputs_dict.pop("generator", None)
1993
1994
torch.manual_seed(0)
1995
output_without_slicing = model(**inputs_dict, generator=torch.manual_seed(0))[0]
0 commit comments