# tf.raw_ops.Prelinearize

<br />

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

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.Prelinearize`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/Prelinearize)

<br />

    tf.raw_ops.Prelinearize(
        input, shape=[], layout=[], name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input` | A `Tensor`. A tensor that will be linearized. |
| `shape` | An optional [`tf.TensorShape`](https://www.tensorflow.org/versions/r2.13/api_docs/python/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). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `variant`. ||

<br />