← 返回事件
持续讨论AI发版

trunk/ff9d60a3e6a3002b92dd89bd9949c70a82e3688f: [inductor] Reuse formatted origin nodes across kernel comments (#194010)

图:PyTorch Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源