From 6ed2e636e1a262e427b9fc1c58050b5a10f3a0cd Mon Sep 17 00:00:00 2001 From: WilliamLian Date: Mon, 20 Jul 2020 11:17:43 +0800 Subject: [PATCH] clean review bot warning --- mindspore/ccsrc/backend/optimizer/pass/optimize_dependence.cc | 1 - mindspore/core/ir/primitive_py.cc | 1 - 2 files changed, 2 deletions(-) diff --git a/mindspore/ccsrc/backend/optimizer/pass/optimize_dependence.cc b/mindspore/ccsrc/backend/optimizer/pass/optimize_dependence.cc index 710e130a85d..09f387d974b 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 15a19b703a4..a726407d254 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());