<br />

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

DEPRECATED FUNCTION

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

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