Files
pytorch/torch
Luca Wehrstedt d61a9b88cf [DeviceMesh] Prefer using _layout over _mesh for all sorts of things (#165554)
The goal of this PR is to avoid storing the explicit `mesh` Tensor inside each DeviceMesh, and instead compute it on-the-fly when the end user needs it, and try to replace all of its internal usages with `_layout` and the newly-introduced `_global_rank_permutation` Tensor. The name of this attribute is up for debate. The advantage of the `_global_rank_permutation` Tensor is that it is _the same_ Tensor for the root mesh and all its children, so it doesn't need to be copied/reallocated.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165554
Approved by: https://github.com/fduwjj
2025-10-16 17:01:44 +00:00
..
2025-10-13 01:48:55 +00:00
2025-10-13 01:48:55 +00:00
2025-10-13 01:48:55 +00:00
2025-10-14 14:22:54 +00:00
2025-10-15 22:49:15 +00:00
2025-10-10 17:23:31 +00:00
2025-10-15 19:45:55 +00:00
2025-10-14 14:22:54 +00:00
2025-10-08 02:30:57 +00:00
2025-04-27 09:56:42 +00:00
2025-10-14 14:22:54 +00:00
2025-10-08 02:30:57 +00:00
2025-10-13 01:48:55 +00:00