<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/framework/tensor_shape.py#L91-L100) |

Disables the V2 TensorShape behavior and reverts to V1 behavior.

    tf.compat.v1.disable_v2_tensorshape()

See docstring for `enable_v2_tensorshape` for details about the new behavior.