forked from mindspore-Ecosystem/mindspore
Fix optimizer step counter bug
This commit is contained in:
parent
19334b4f05
commit
4419881f2f
|
@ -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…
Reference in New Issue