Module: tf.compat.v1.compat

Compatibility functions.

The tf.compat module contains two sets of compatibility functions.

Tensorflow 1.x and 2.x APIs

The compat.v1 and compat.v2 submodules provide a complete copy of both the v1 and v2 APIs for backwards and forwards compatibility across TensorFlow versions 1.x and 2.x. See the migration guide for details.

Utilities for writing compatible code

Aside from the compat.v1 and compat.v2 submodules, tf.compat also contains a set of helper functi