Getting Started
Python API
Gluon
Triton MLIR Dialects
Programming Guide
Convert a tensor to a different distributed layout.
value (tensor) – The input tensor.
layout (DistributedLayout) – The target layout.
assert_trivial (bool) – If True, asserts that the conversion is trivial (no data movement).
The tensor with the new layout.
tensor