Skip to content

Commit

Permalink
Prefix increment
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Jan 12, 2024
1 parent 536a6ff commit e5ad0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/core/providers/cpu/ml/label_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class LabelEncoder_2 final : public OpKernel {
while (input_iter != input.end()) {
const auto found = map_.find(*input_iter);
*output_iter = found == map_.end() ? default_value_ : found->second;
output_iter++;
input_iter++;
++output_iter;
++input_iter;
}
return Status::OK();
}
Expand Down

0 comments on commit e5ad0ec

Please sign in to comment.