trunk/43ddcfd68d4d908c34c5f821f2ab20027900af3b: [precompile] Keep one lifecycle state in Capture (#198423)
- PyTorch: 2131 events in the last 90 days
- PyTorch: 2102th Release in the last 90 days
- Previous: earlier the same day · trunk/375d0e1f3859f815a24ae260a5169e984fd130a6: [vision hash update] update the pinned vision hash (#200344)
What happened
Problem. Each tracer's capture ran its own with -block lifecycle from its own flags, so a Dynamo capture misused after its block gave different errors than a make_fx one, and a spent make_fx capture kept the pair its docstring says it drops. Fix. Capture owns the lifecycle as one state field under one lock, and the tracers implement only the hooks it calls. Summary. _MakeFxCapture tracked its block with two booleans…
Summary assembled by rule from the sources below