Skip to content

Commit

Permalink
fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCaoG committed Jul 11, 2023
1 parent 955a0fb commit c304e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_xla/experimental/pjrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

aliases = [
runtime.addressable_device_count,
runtime.physical_device_attributes,
runtime.device_type,
runtime.global_physical_device_attributes,
runtime.global_device_count,
runtime.global_ordinal,
runtime.local_device_count,
Expand All @@ -28,6 +26,8 @@
]

rendezvous = deprecated(this_module, xm.xla_rendezvous)
device_attributes = deprecated(this_module, runtime.runtime_device_attributes)
global_device_attributes = deprecated(this_module, runtime.global_runtime_device_attributes)

for alias in aliases:
register_deprecated(this_module, alias)

0 comments on commit c304e06

Please sign in to comment.