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
Fix EValue construction from a smart pointer. (#5357)
Summary:
Pull Request resolved: #5357
The move constructor invoked by `*this =` expression tries to `destroy()` the `this` first, but it's not yet initialized.
For example, if the tag is randomly `Tag::ListTensor`, `destroy()` will try to iterate over and destroy a list of tensors. But since the memory is uninitialized, it will typically crash or corrupt memory.
Reviewed By: dbort
Differential Revision: D62658327
0 commit comments