Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwaketan committed Apr 21, 2023
1 parent 68824ea commit 674e53c
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 @@ -97,7 +97,7 @@ def xrt_world_size(defval=1):
if pjrt.using_pjrt():
g_xrt_world_size = pjrt.world_size()
else:
g_xrt_world_size = xu.getenv_as(xenv.XRT_WORLD_SIZE, int, defval=defval)
g_xrt_world_size = xu.getenv_as(xenv.WORLD_SIZE, int, defval=defval)
return g_xrt_world_size

g_ordinal = None
Expand Down

0 comments on commit 674e53c

Please sign in to comment.