Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure finalize and finalize_iteration are called during shutdown/exc…
…eption (pytorch#846) Summary: Pull Request resolved: pytorch#846 Fixes pytorch#821 1. Ensure `finalize_iteration` is called during `DataLoader2.shutdown()` 2. If an uncaught exception is raised by `DataLoader2Iterator.next()`, ensure finalization calls are made Test Plan: Imported from OSS Reviewed By: ejguan Differential Revision: D40569566 Pulled By: NivekT fbshipit-source-id: f0768a62fcc6dfba1aef3a70c8c55563a45304aa
- Loading branch information