pytorch / torchdynamo

A Python-level JIT compiler designed to make unmodified PyTorch programs faster.
BSD 3-Clause "New" or "Revised" License
1.01k stars 124 forks source link

Preserve dynamo/inductor config during minifier #1965

Closed williamwen42 closed 1 year ago

williamwen42 commented 1 year ago

Dynamo/inductor config is not preserved, so minifier might run with different settings - e.g. this might happen if a user changes config at runtime. This is especially relevant with the new torch.compile inductor modes, since inductor configs are changed at runtime.