View source on GitHub |
Change the layout of a Tensor value in the jit function execution.
tf.keras.distribution.distribute_tensor(
tensor, layout
)
Args | |
---|---|
tensor
|
a Tensor to change the layout. |
layout
|
TensorLayout to be applied on the value.
|
Returns | |
---|---|
a new value with the specified tensor layout. |