# tf.compat.v1.data.experimental.TensorStructure

<br />

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

DEPRECATED FUNCTION

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

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