trunk/8368a088aeaec7fd68f9eef843876de15748c3be: Fix assume_constant_result tensor constants after graph breaks (#185373)
- PyTorch 近 90 天出现 660 次
- PyTorch 近 90 天第 651 次发版
- 上一次:同一天稍早 · trunk/2b1d72fc614c57d5ebe70ebaf22da2abaf11a3d4
发生了什么
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…
摘要按规则整理自下方来源原文