Skip to content

Commit

Permalink
Fix warning message when running mp workload (#6892)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCaoG authored Apr 8, 2024
1 parent 96cc98f commit 954242f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_xla/core/xla_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def xla_replication_devices(local_devices):
'Cannot replicate across different device types: devices={}/{}'.format(
local_devices, real_devices))
device_type = device_types.pop()
kind_devices = get_xla_supported_devices(devkind=device_type)
kind_devices = get_xla_supported_devices()
if len(kind_devices) != len(local_devices):
# Replication can only happen among all devices of one kind.
raise RuntimeError(
Expand Down

0 comments on commit 954242f

Please sign in to comment.