Skip to content

Commit 490c476

Browse files
committed
up
1 parent cfe1e2e commit 490c476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/models/test_modeling_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ def test_enable_disable_slicing(self):
19891989
model = self.model_class(**init_dict).to(torch_device)
19901990

19911991
inputs_dict.update({"return_dict": False})
1992-
_ = inputs_dict.pop("generator")
1992+
_ = inputs_dict.pop("generator", None)
19931993

19941994
torch.manual_seed(0)
19951995
output_without_slicing = model(**inputs_dict, generator=torch.manual_seed(0))[0]

0 commit comments

Comments
 (0)