viable/strict/1788202219: [AOTInductor] Fix user-managed constant handle leak (#194480) (#194480)
- PyTorch 近 90 天出现 314 次
- PyTorch 近 90 天第 311 次发版
- 上一次:同一天稍早 · viable/strict/1788197050: Move partial XPU device property utils to aten (#195146)
发生了什么
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…
摘要按规则整理自下方来源原文