Browse Source

!5066 fix too many warning print

Merge pull request !5066 from liubuyu/master
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
7fb749b8fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/pybind_api/ir/primitive_py.cc

+ 1
- 1
mindspore/ccsrc/pybind_api/ir/primitive_py.cc View File

@@ -178,7 +178,7 @@ py::function PrimitivePy::GetComputeFunction() const {
py::function get_fn = parse::python_adapter::GetPyFn(vm_module, get_vm_impl_fn);
py::function vm_fn = get_fn(python_obj_);
if (py::isinstance<py::none>(vm_fn)) {
MS_LOG(WARNING) << "Cannot find " << python_obj_.attr("__class__").attr("__name__").cast<std::string>();
MS_LOG(INFO) << "Cannot find " << python_obj_.attr("__class__").attr("__name__").cast<std::string>();
vm_fn = mindspore::GetComputeFunction(Primitive::name());
}
return vm_fn;


Loading…
Cancel
Save