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
[Dynamo] Guard serialization for TUPLE_ITERATOR_LEN (pytorch#152865)
Tests serialization for TUPLE_ITERATOR_LEN; includes no non-test changes.
Passing a tuple iterator as input results in the iterator being exhausted during testing. I threw together a super janky workaround via accepting a func for kwarg generation and replacing `frame_state.f_locals` with newly-generated kwargs to get fresh iterators, but insights into a better approach are welcome!
Pull Request resolved: pytorch#152865
Approved by: https://github.com/jansel
ghstack dependencies: pytorch#152725, pytorch#152727, pytorch#152728, pytorch#152730
0 commit comments