# tfio.experimental.serialization.encode_avro

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/io/blob/v0.24.0/tensorflow_io/python/experimental/serialization_ops.py#L154-L177) |

Encode Tensors into Avro string.

    tfio.experimental.serialization.encode_avro(
        data, schema, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `data` | A list of Tensors to encode. |
| `schema` | A string of the Avro schema. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| An Avro-encoded string Tensor. ||

<br />