Skip to content

Commit 82cb341

Browse files
committed
paraMissing
1 parent 0cb896d commit 82cb341

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: torch/distributed/checkpoint/state_dict.py

+1
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@ def _device(t):
869869
nonlocal device
870870
if device is None:
871871
device = t.device
872+
elif device != t.device:
872873
raise ValueError("Device mismatch")
873874
return t
874875

0 commit comments

Comments
 (0)