!2003 fix log print of bprop loading

Merge pull request !2003 from riemann_penn/fix_log_print
pull/2003/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 206dcd1ebb

@ -52,9 +52,6 @@ py::function PrimitivePy::GetBpropFunction() {
return fn;
} else {
auto fn = GetBpropFunctionByObj(python_obj_);
if (fn.is_none()) {
MS_LOG(WARNING) << "Can't find bprop function for " << name();
}
return fn;
}
}

@ -29,9 +29,6 @@ py::function GetBpropFunctionByObj(py::object obj) {
py::function GetBpropFunction(std::string name) {
auto fn = GetBpropFunctionByObj(py::str(name));
if (fn.is_none()) {
MS_LOG(WARNING) << "Can't find bprop function for " << name;
}
return fn;
}

Loading…
Cancel
Save