!6433 CSV Dataset fix StateDiagram iter compare to other container's end

Merge pull request !6433 from jiangzhiwen/fix/csv_iter_compare_end
This commit is contained in:
mindspore-ci-bot 2020-09-18 10:16:19 +08:00 committed by Gitee
commit ef42280d03
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ int CsvOp::CsvParser::CountRows(int c) {
m = Message::MS_NORMAL;
}
StateDiagram::iterator it = sdl.find({cur_state_, m});
if (it == sd.end()) {
if (it == sdl.end()) {
return -1;
}
cur_state_ = it->second.first;