Skip to content

Commit c0fc91b

Browse files
sayakpaula-r-r-o-w
andauthored
Update tests/models/test_modeling_common.py
Co-authored-by: Aryan <[email protected]>
1 parent 8601c61 commit c0fc91b

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
@@ -1752,7 +1752,7 @@ def test_wrong_device_map_raises_error(self, device_map, msg_substring):
17521752

17531753
assert msg_substring in str(err_ctx.exception)
17541754

1755-
@parameterized.expand([0, "cuda", torch.device("cuda"), torch.device("cuda:0")])
1755+
@parameterized.expand([0, "cuda", torch.device("cuda")])
17561756
@require_torch_gpu
17571757
def test_passing_non_dict_device_map_works(self, device_map):
17581758
init_dict, inputs_dict = self.prepare_init_args_and_inputs_for_common()

0 commit comments

Comments
 (0)