Skip to content

Commit

Permalink
Fix typo in error message (#2736)
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze authored and linkerzhang committed Jan 5, 2020
1 parent 013642e commit 3d75c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/cpu/nn/tfidfvectorizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ TfIdfVectorizer::TfIdfVectorizer(const OpKernelInfo& info) : OpKernel(info), imp
} else {
auto before_insert = impl_->str_set_.size();
Emplace(impl_->pool_strings_.begin() + start_idx, ngrams, ngram_size, ngram_id, impl_->str_set_);
ORT_ENFORCE((before_insert + ngrams) == impl_->str_set_.size(), "poll_strings duplicate ", std::to_string(ngram_size), "-grams detected");
ORT_ENFORCE((before_insert + ngrams) == impl_->str_set_.size(), "pool_strings duplicate ", std::to_string(ngram_size), "-grams detected");
}
} else {
ngram_id += ngrams;
Expand Down

0 comments on commit 3d75c1b

Please sign in to comment.