pytorch
fefd56c4 - Remove an accidental copy in a range-based for loop (#48234)

Commit
4 years ago
Remove an accidental copy in a range-based for loop (#48234) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48234 This was copying the iterator varaible instead of taking a reference. Fix the trivial error here. Test Plan: clang11 catches this and throws a warning that we promote with -Werror. This change fixes the error. Reviewed By: smeenai Differential Revision: D24970929 fbshipit-source-id: 335a1b53276467987bc27fa41326803e01e70c01
Author
Parents
Loading