Skip to content

Commit

Permalink
update module
Browse files Browse the repository at this point in the history
  • Loading branch information
zpcore committed Jul 18, 2024
1 parent 408221a commit 140c044
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions torch_xla/core/xla_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import torch_xla.utils.closures as xc
import os
from torch_xla.experimental.deprecation import deprecated
import torch_xla._internal.utils as iutils
import torch_xla._internal.utils as _utils

_DEVICES = xu.LazyProperty(lambda: torch_xla._XLAC._xla_get_devices())

Expand All @@ -42,7 +42,8 @@

XLA_LIB = Library("xla", "DEF")

parse_xla_device = deprecated(torch_xla.core, iutils.parse_xla_device)
from . import xla_model as this_module
parse_xla_device = deprecated(this_module, _utils.parse_xla_device)


def _init_world_size_ordinal():
Expand Down

0 comments on commit 140c044

Please sign in to comment.