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