#23775·keras

Should enable `fullgraph=True` for `torch.compile`?

Author: innatCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbackend:torch

In model training API, it is mentioned that for jit_compile, the torch backend will use TorchInductor. In code I see

https://github.com/keras-team/keras/blob/4ae0aa905310ac72cbe54f5860071f19d37cf220/keras/src/backend/torch/trainer.py#L185

Is fullgraph=True intentionally not set? Having this may ensure that there are no graphbreaks and potentially speed up things.