pytorch
c470ad4f - Add missing overload for ivalue toSym(Int|Float) (#91405)

Commit
3 years ago
Add missing overload for ivalue toSym(Int|Float) (#91405) Noticed the toSymFloat / toSymInt overloads always copied the internal pointer of an ivalue even if it was an rvalue unlike other overloads (like toTensor). This fixes that issue by adding the appropriate methods needed to facilitate that. Pull Request resolved: https://github.com/pytorch/pytorch/pull/91405 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading