You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge torch_from_blob and torch_from_blob_v2 into a single shim (#177048)
Mirror the changes in #176440
Mirror the changes on release/2.11 branch
Keep just the _v2 signature under the name torch_from_blob, and have
the C++ wrapper in ops.h adapt simple function-pointer deleters via a
trampoline using if constexpr, avoiding heap allocation for that case.
Authored with Claude.
Pull Request resolved: #177048
Approved by: https://github.com/malfet
0 commit comments