pytorch/torch/_dynamo/variables
Iris Zhang (PyTorch) 23fa9621e4 [DeviceMesh] Rename _device_mesh.py to device_mesh.py to prepare for beta (#115099) (#115193)
Summary:

Rename _device_mesh.py to device_mesh.py, update all callsites, add documentation.
We created stubs for public class and methods in torch.distributed.device_mesh so that torch.distributed.device_mesh can be imported with or without distributed is available().

Original diff reverted: D51629761
Original PR reverted: https://github.com/pytorch/pytorch/pull/115099
Prior to landing, CI signals are all passed. Shipit added the "ci/trunk" label to the PR and DID NOT wait for it and went ahead committing. More context can be found in the reverted PR above.

Test Plan: CI.

Differential Revision: D51861018

Pull Request resolved: https://github.com/pytorch/pytorch/pull/115193
Approved by: https://github.com/fegin
2023-12-08 08:44:32 +00:00
..
__init__.py [dynamo] Improve support for dynamic shapes str.format and _assert (#115203) 2023-12-06 04:54:45 +00:00
base.py Refactor how HOPs create new args to subgraphs (#115185) 2023-12-06 01:29:03 +00:00
builder.py Move the shape env symint cache to a symbol cache, better routing for subclass fakification [re-pr 115227] (#115396) 2023-12-08 05:02:21 +00:00
builtin.py [dynamo] Improve support for dynamic shapes str.format and _assert (#115203) 2023-12-06 04:54:45 +00:00
constant.py [dynamo] Improve support for dynamic shapes str.format and _assert (#115203) 2023-12-06 04:54:45 +00:00
ctx_manager.py [contextlib] Wrapping a function with set_grad_enabled will consume its global mutation (#113359) 2023-11-09 19:16:20 +00:00
dicts.py [dynamo] Support hasattr on dataclass (#115046) 2023-12-05 19:01:14 +00:00
distributed.py [DeviceMesh] Rename _device_mesh.py to device_mesh.py to prepare for beta (#115099) (#115193) 2023-12-08 08:44:32 +00:00
functions.py [dynamo] Improve support for inspect.signature().parameters (#115047) 2023-12-04 19:08:36 +00:00
higher_order_ops.py Remove remaining uses of copy_graphstate (#115321) 2023-12-07 22:35:02 +00:00
iter.py [dynamo] Remove VariableTracker.add_options (#111725) 2023-11-07 19:55:19 +00:00
lazy.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
lists.py [dynamo] add list iterator contains (#115237) 2023-12-06 22:26:16 +00:00
misc.py [dynamo] Improve support for dynamic shapes str.format and _assert (#115203) 2023-12-06 04:54:45 +00:00
nn_module.py [dynamo] Fix UnspecializedNNModuleVariable's source (#113852) 2023-11-17 08:17:27 +00:00
optimizer.py [dynamo] Eagerly install guards (#111415) 2023-11-07 19:55:19 +00:00
tensor.py Make subclass type instances constants (like UserDefinedClasses) (#115323) 2023-12-07 08:10:59 +00:00
torch_function.py [dynamo] Eagerly install guards (#111415) 2023-11-07 19:55:19 +00:00
torch.py [dynamo] Improve support for dynamic shapes str.format and _assert (#115203) 2023-12-06 04:54:45 +00:00
user_defined.py [dynamo] Add RestrictedListSubclassVariable (#115057) 2023-12-05 19:01:23 +00:00