diff --git a/mindspore/ccsrc/operator/composite/composite.cc b/mindspore/ccsrc/operator/composite/composite.cc index 347641829dc..9a665e8a30d 100644 --- a/mindspore/ccsrc/operator/composite/composite.cc +++ b/mindspore/ccsrc/operator/composite/composite.cc @@ -743,7 +743,7 @@ FuncGraphPtr MultitypeFuncGraph::GenerateFromTypes(const TypePtrList& types) { } oss << ++idx << ". " << item.first << "\n " << trace::GetDebugInfo(func_graph->debug_info()) << "\n"; } - MS_LOG(EXCEPTION) << "Fail to find overload function for `" << name_ << "` with type " << buffer.str() << "\n" + MS_LOG(EXCEPTION) << "The '" << name_ << "' operation does not support the type " << buffer.str() << "\n" << oss.str(); } diff --git a/mindspore/ops/composite/multitype_ops/equal_impl.py b/mindspore/ops/composite/multitype_ops/equal_impl.py index 428cdf4705d..ff54c34fad3 100644 --- a/mindspore/ops/composite/multitype_ops/equal_impl.py +++ b/mindspore/ops/composite/multitype_ops/equal_impl.py @@ -190,6 +190,7 @@ def _none_equal_tuple(x, y): """ return False + @equal.register("Tensor", "Number") @equal.register("Number", "Tensor") @equal.register("Tensor", "Tensor") @@ -235,3 +236,33 @@ def _none_equal_tensor(x, y): bool, return false. """ return False + + +@equal.register("List", "None") +def _list_equal_none(x, y): + """ + Determine if list equal none. + + Args: + x (list): The first input which is a list. + y (none): The second input which is none. + + Returns: + bool, return false. + """ + return False + + +@equal.register("None", "List") +def _none_equal_list(x, y): + """ + Determine if none equal list. + + Args: + x (none): The first input which is none. + y (list): The second input which is a list. + + Returns: + bool, return false. + """ + return False