提交 c853f985 编写于 作者: B buxue

support equal list with none

上级 9e1b5efd
......@@ -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();
}
......
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册