pytorch
7541b07f - Prevent invariant assert failure on win+debug (#78636)

Commit
2 years ago
Prevent invariant assert failure on win+debug (#78636) Summary: Provide missing break statements to correct for IListRef handling on Windows MSVC Debug builds. Test Plan: Run any torch IListRefIterator destruction on windows in a debug mode build. Without this change, it will destruct incorrectly for Boxed IListRefTag, and invariably hit an always-fail assert for IListRef tag. With it, proper destruction, iterator payload assignment, and no assert encounter with valid IListRefTag will occur. Differential Revision: D36811554 Pull Request resolved: https://github.com/pytorch/pytorch/pull/78636 Approved by: https://github.com/malfet, https://github.com/atalman
Author
George Gensure
Committer
Parents
Loading