diff --git a/mindspore/ccsrc/backend/optimizer/pass/optimize_dependence.cc b/mindspore/ccsrc/backend/optimizer/pass/optimize_dependence.cc index 710e130a85..09f387d974 100644 --- a/mindspore/ccsrc/backend/optimizer/pass/optimize_dependence.cc +++ b/mindspore/ccsrc/backend/optimizer/pass/optimize_dependence.cc @@ -156,6 +156,5 @@ const AnfNodePtr OptimizeDependence::GetConvertNode(const FuncGraphPtr &graph, c } return replace_node; } - } // namespace opt } // namespace mindspore diff --git a/mindspore/core/ir/primitive_py.cc b/mindspore/core/ir/primitive_py.cc index 15a19b703a..a726407d25 100644 --- a/mindspore/core/ir/primitive_py.cc +++ b/mindspore/core/ir/primitive_py.cc @@ -131,7 +131,6 @@ py::function PrimitivePy::GetComputeFunction() const { MS_LOG(INFO) << name() << ": get_vm_impl_fn"; 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(vm_fn)) { MS_LOG(WARNING) << "Cannot find " << python_obj_.attr("__class__").attr("__name__").cast(); vm_fn = mindspore::GetComputeFunction(Primitive::name());