pytorch
87bfb2ff - Automatically infer the type of the iterator in a range-based for loop (#48232)

Commit
4 years ago
Automatically infer the type of the iterator in a range-based for loop (#48232) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48232 This was not the correct type that's being generated via the begin() function and thus a new object was being created and attempted to take a reference to. Instead just take a reference to whatever the range-based loop generates. Test Plan: This fixes a build error from a new warnign in llvm11 Reviewed By: smeenai Differential Revision: D24970920 fbshipit-source-id: f125dca900f7550eee505b4f94781b6637533be0
Author
Parents
Loading