# tf.experimental.enable_strict_mode

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/framework/strict_mode.py#L22-L29) |

If called, enables strict mode for all behaviors.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.experimental.enable_strict_mode()

Used to switch all deprecation warnings to raise errors instead.