!8790 fix test_onehot_abnormal_depth_str bug

From: @zjun3021
Reviewed-by: @jjfeing,@kisnwang
Signed-off-by: @jjfeing
pull/8790/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 4964d1d82f

@ -1972,8 +1972,8 @@ void PynativeExecutor::Clear(const std::string &flag) {
ConfigManager::GetInstance().ResetIterNum();
if (top_graph_cells_.find(flag) != top_graph_cells_.end()) {
op_forward_map_.clear();
Clean();
}
Clean();
return;
}

Loading…
Cancel
Save