Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 304653316
  • Loading branch information
Google Research Team authored and Copybara-Service committed Apr 3, 2020
1 parent 4b9a272 commit 294bc78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automl_zero/algorithm_test_util.cc
Expand Up @@ -163,11 +163,11 @@ IntegerT MissingDataInComponentFunction(
const vector<shared_ptr<const Instruction>>& component_function1,
const vector<shared_ptr<const Instruction>>& component_function2) {
std::unordered_set<IntegerT> data2;
for (shared_ptr<const Instruction> instruction : component_function2) {
for (const shared_ptr<const Instruction>& instruction : component_function2) {
data2.insert(instruction->GetIntegerData());
}
vector<IntegerT> missing;
for (shared_ptr<const Instruction> instruction : component_function1) {
for (const shared_ptr<const Instruction>& instruction : component_function1) {
const IntegerT data1_value = instruction->GetIntegerData();
if (data2.find(data1_value) == data2.end()) {
missing.insert(missing.end(), data1_value);
Expand Down

0 comments on commit 294bc78

Please sign in to comment.