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

trunk/29343e76e2342c777bb257a270bae1d805996700: Support non-builtin constexpr objects in user Triton kernels (#189692)

图:PyTorch Releases

发生了什么

Fix Inductor codegen for user-defined Triton kernels that pass non-builtin Python objects as tl.constexpr values. When such constants are serialized with constructor-style repr output, for example UserDefinedTritonKernelConfig(offset=2) , generated kernel source and launcher code need the corresponding class in scope. This change imports the constant class into generated kernel source and makes it available in the g…

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

为什么在扩散

来源