# tf.data.experimental.TensorStructure

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/data/util/structure.py#L40-L43) |

DEPRECATED FUNCTION

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.data.experimental.TensorStructure`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/data/experimental/TensorStructure)

<br />

    tf.data.experimental.TensorStructure(
        dtype, shape
    )

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use [`tf.TensorSpec`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/TensorSpec) instead.