View source on GitHub |
Fetches the layout of a DTensor.
tf.experimental.dtensor.fetch_layout(
tensor: tf.Tensor
) -> tf.experimental.dtensor.Layout
Used in the notebooks
Used in the guide |
---|
Args | |
---|---|
tensor
|
The DTensor whose layout is to be fetched. |
Returns | |
---|---|
The Layout of this DTensor.
|
Raises | |
---|---|
RuntimeError
|
When not called eagerly. |