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

trunk/8368a088aeaec7fd68f9eef843876de15748c3be: Fix assume_constant_result tensor constants after graph breaks (#185373)

发生了什么

invoke_and_store_as_constant is shared by assume_constant_result , builtin constant folding, and constant NNModule methods. When one of these paths returned a Tensor, Dynamo registered it as a graph attribute with a ConstantSource derived from the call-site name. Unlike the non-Tensor path, tensor registration did not install that name in the runtime globals. When bytecode reconstruction needed the value across a gr…

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

为什么在扩散

来源