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

viable/strict/1788202219: [AOTInductor] Fix user-managed constant handle leak (#194480) (#194480)

图:PyTorch Releases

发生了什么

Summary: MaybeOwningAtenTensorHandle created a shallow tensor handle for user-managed constants without owning it, leaking the allocated tensor wrapper and its reference to the underlying storage. Store every ConstantMap entry in RAIIAtenTensorHandle . For user-managed constants, create a checked shallow handle copy and immediately transfer ownership to the map. This preserves zero-copy tensor data and caller owners…

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

为什么在扩散

来源