Skip to content

Commit

Permalink
Use const-references in nodes_to_rewrite range loop
Browse files Browse the repository at this point in the history
Test Plan: CI

Reviewed By: supriyar

Differential Revision: D24267389

fbshipit-source-id: c56d6bf1924b4c4c993fdf1328cfd5ab0d890869
  • Loading branch information
malfet authored and facebook-github-bot committed Oct 13, 2020
1 parent 4ad4715 commit ba1e0a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ void ReplicateChooseQParamsQuantDequant(std::shared_ptr<Graph>& graph) {
matched_choose_qparam, matched_quantize, matched_dequantize));
}
}
for (const auto nodes : nodes_to_rewrite) {
for (const auto& nodes : nodes_to_rewrite) {
auto quant_node = std::get<1>(nodes);
auto dequant_node = std::get<2>(nodes);
// get input of quantize call.
Expand Down

0 comments on commit ba1e0a8

Please sign in to comment.