Skip to content

Commit 99c43c8

Browse files
HAOCHENYEzhouzaida
andauthored
Update mmengine/dist/utils.py
Co-authored-by: Zaida Zhou <[email protected]>
1 parent 3cc9e0a commit 99c43c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmengine/dist/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def cast_data_device(
563563
Tensor or list or dict: ``data`` was casted to ``device``.
564564
"""
565565
if out is not None:
566-
if type(data) is type(out):
566+
if type(data) is not type(out):
567567
raise TypeError(
568568
'out should be the same type with data, but got data is '
569569
f'{type(data)} and out is {type(data)}')

0 commit comments

Comments
 (0)