# tf.disable_v2_tensorshape

<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/framework/tensor_shape.py#L87-L95) |

Disables the V2 TensorShape behavior and reverts to V1 behavior.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.disable_v2_tensorshape()

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