# tf.raw_ops.SerializeTensor

<br />

Transforms a Tensor into a serialized TensorProto proto.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.SerializeTensor(
        tensor, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | A `Tensor`. A Tensor of type `T`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />