提交 e0e213e6 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix error message for join, it was horribly confusing.

上级 fcf5c80e
...@@ -2838,7 +2838,7 @@ class Join(Op): ...@@ -2838,7 +2838,7 @@ class Join(Op):
x.type.broadcastable[axis + 1:] for x in as_tensor_variable_args] x.type.broadcastable[axis + 1:] for x in as_tensor_variable_args]
if not all([bcasts[0] == bc for bc in bcasts[1:]]): if not all([bcasts[0] == bc for bc in bcasts[1:]]):
raise ValueError('Dimensions other than the given axis must' raise ValueError('Dimensions other than the given axis must'
' match', tensors) ' have the same broadcast behavior', tensors)
bcastable[:] = as_tensor_variable_args[0].type.broadcastable bcastable[:] = as_tensor_variable_args[0].type.broadcastable
try: try:
bcastable[axis] = False bcastable[axis] = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论