You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
torchx: use importlib_metadata for Python 3.10+ syntax (#623)
Summary:
importlib.metadata in 3.12 breaks compatibility with the dict style interface. This switches TorchX to use importlib_metadata for all versions and switches the code to use the 3.10+ select style interface instead of dict.
This avoids having to pin importlib_metadata<5 such as in pytorch/tutorials#2091
Pull Request resolved: #623
Test Plan: Unit tests on both importlib_metadata 5.0 and 4.1.3
Reviewed By: priyaramani
Differential Revision: D40561638
Pulled By: d4l3k
fbshipit-source-id: 95144406c0e3dcbe203ada3ff3236f7384ab2a5c
0 commit comments