TorchDynamo 是解释器级的 tracing 框架,可以在不中断 Python 语义的前提下,构造静态 torch.fx IR.

Underlying Mechanism

因为 Python 本质是