/TensorFlow 2.4


An op which linearizes one Tensor value to an opaque variant tensor.

input A Tensor. A tensor that will be linearized.
shape An optional tf.TensorShape or list of ints. Defaults to []. The shape of the tensor.
layout An optional list of ints. Defaults to []. A vector holding the requested layout in minor-to-major sequence. If a layout attribute is passed but its values are all -1 the layout will be computed by the infeed operation.
name A name for the operation (optional).
A Tensor of type variant.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.