!2841 Fix optimizer step counter bug

Merge pull request !2841 from Kang/master
pull/2841/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit d0d877a4ea

@ -184,7 +184,8 @@ class Optimizer : public std::enable_shared_from_this<Optimizer> {
}
}
};
use_profile ? (WITH(MsProfile::GetProfile()->Lap(counter++)) run_runc) : run_runc();
use_profile ? (WITH(MsProfile::GetProfile()->Lap(counter)) run_runc) : run_runc();
counter++;
if (run_only_once_) {
break;

Loading…
Cancel
Save