Skip to content

Commit

Permalink
Unify TORCH_LIBRARY definitions (pytorch#6455)
Browse files Browse the repository at this point in the history
Summary:
This pull request tries to unify all TORCH_LIBRARY definitions across torch_xla into one xla library.

Test Plan:
CI
  • Loading branch information
alanwaketan authored and amithrm committed Mar 1, 2024
1 parent 5c9c4a9 commit 3bee0a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torch_xla/core/xla_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
# Default bucket size for all-reduce
_ALLREDUCE_BUCKET_CAP_MB = 50

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


def _init_world_size_ordinal():
global _WORLD_SIZE, _ORDINAL
Expand Down

0 comments on commit 3bee0a7

Please sign in to comment.