提交 a0098234 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!3223 clean review bot warning

Merge pull request !3223 from lianliguang/master
...@@ -156,6 +156,5 @@ const AnfNodePtr OptimizeDependence::GetConvertNode(const FuncGraphPtr &graph, c ...@@ -156,6 +156,5 @@ const AnfNodePtr OptimizeDependence::GetConvertNode(const FuncGraphPtr &graph, c
} }
return replace_node; return replace_node;
} }
} // namespace opt } // namespace opt
} // namespace mindspore } // namespace mindspore
...@@ -131,7 +131,6 @@ py::function PrimitivePy::GetComputeFunction() const { ...@@ -131,7 +131,6 @@ py::function PrimitivePy::GetComputeFunction() const {
MS_LOG(INFO) << name() << ": get_vm_impl_fn"; MS_LOG(INFO) << name() << ": get_vm_impl_fn";
py::function get_fn = parse::python_adapter::GetPyFn(vm_module, 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_); py::function vm_fn = get_fn(python_obj_);
if (py::isinstance<py::none>(vm_fn)) { if (py::isinstance<py::none>(vm_fn)) {
MS_LOG(WARNING) << "Cannot find " << python_obj_.attr("__class__").attr("__name__").cast<std::string>(); MS_LOG(WARNING) << "Cannot find " << python_obj_.attr("__class__").attr("__name__").cast<std::string>();
vm_fn = mindspore::GetComputeFunction(Primitive::name()); vm_fn = mindspore::GetComputeFunction(Primitive::name());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册