pytorch
71e1f349 - [aot_inductor] return a copy of any constant (#111356)

Commit
1 year ago
[aot_inductor] return a copy of any constant (#111356) When the model returns a constant, we cannot "release" its handle, because the constant doesn't have any handle at all. Instead, we should allocate a new tensor and then return a copy of the constant. Pull Request resolved: https://github.com/pytorch/pytorch/pull/111356 Approved by: https://github.com/hl475
Author
Committer
Parents
Loading