Skip to content

Commit

Permalink
Update trainer_interface.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
taku910 committed Jan 29, 2019
1 parent 552937e commit 3d597a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trainer_interface.cc
Expand Up @@ -422,7 +422,7 @@ util::Status TrainerInterface::LoadSentences() {
// +3 for meta pieces.
if (trainer_spec_.model_type() != TrainerSpec::WORD &&
trainer_spec_.model_type() != TrainerSpec::CHAR) {
CHECK_LT_OR_RETURN(
CHECK_LE_OR_RETURN(
static_cast<int>(required_chars_.size() + meta_pieces_.size()),
trainer_spec_.vocab_size())
<< "Vocabulary size is smaller than required_chars. "
Expand Down

0 comments on commit 3d597a5

Please sign in to comment.