Skip to content

Commit

Permalink
fix debug issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Nov 23, 2023
1 parent 8bacbb8 commit 5eae7e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions onnxruntime/core/providers/cpu/nn/tfidfvectorizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ struct TfIdfVectorizer::Impl {
assert(ngram_id != 0);
--ngram_id;
assert(ngram_id < ngram_indexes_.size());
size_t output_idx = SafeInt<size_t>(ngram_indexes_[ngram_id]);
assert(output_idx < frequencies.size());
return output_idx;
return SafeInt<size_t>(ngram_indexes_[ngram_id]);
}
};

Expand Down

0 comments on commit 5eae7e6

Please sign in to comment.