!6404 fix eagleEye check

Merge pull request !6404 from gukecai/codex
pull/6404/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit c55bd78ce5

@ -96,6 +96,10 @@ Status CallbackManager::RegisterCallback(rtCallback_t callback, const void *user
ret = rtEventRecord(event, stream_);
if (ret != RT_ERROR_NONE) {
MS_LOG(ERROR) << "Record event failed";
auto flag = rtEventDestroy(event);
if (flag != RT_ERROR_NONE) {
MS_LOG(ERROR) << "rtEventDestroy failed";
}
return kFail;
}
auto cb = std::pair<rtCallback_t, const void *>(callback, user_data);

Loading…
Cancel
Save