Graph's Blind Spot: Python Functions with Side Effects

Functions with side effects, such as modifying global state, performing I/O operations, or calling external libraries not wrapped by TensorFlow, are challenging for AutoGraph. When AutoGraph encounters such constructs, it may issue warnings that it 'could not transform' the function and will run it as-is in eager mode, potentially hindering performance optimizations.

Sources

Open the full topic