trunk/ff9d60a3e6a3002b92dd89bd9949c70a82e3688f: [inductor] Reuse formatted origin nodes across kernel comments (#194010)
- PyTorch: 209 events in the last 90 days
- PyTorch: 206th Release in the last 90 days
- Previous: earlier the same day · trunk/e2d110a75ba155e0699f6de302a055154551e460: [distributed] Stabilize NCCL timeout tests (#194954)
What happened
Every generated kernel carries a comment naming the graph fragment it came from, and building it re-formats each of the kernel's origin nodes with Node.format_node(include_tensor_metadata=True). The same node is an origin of many kernels, so on a large graph this rebuilds the same strings over and over: 258k format_node calls to emit comments for 1266 kernels on one production model, which cProfile puts at a larger…
Summary assembled by rule from the sources below