TensorFlow 2.x's Performance Catalyst: tf.function

AutoGraph is seamlessly integrated with the `@tf.function` decorator in TensorFlow 2.x, which is enabled by default. This combination allows developers to write highly readable, eager-style Python code that automatically benefits from graph execution's performance, optimization, and deployment advantages, including better utilization of accelerators.

Sources

Open the full topic