Confusion between xla_model.xla_device() and runtime.xla_device() #7831
Labels
good first issue
Good for newcomers
usability
Bugs/features related to improving the usability of PyTorch/XLA
Currently we have two files exposing the xla_device function(core.xla_model and runtime) and since both the files are commonly imported in user facing programs, it can be confusing to have both the functions with same name.
xla_model.xla_device has some extra logic to handle SPMD case but other than that it calls runtime.xla_device function. Opening this issue to propose that we move the runtime.xla_device function to a xla_utils and rename it to something else like xla_device_helper and to be backward compatible maintain the core.xla_model.xla_device function.
The text was updated successfully, but these errors were encountered: