提交 48eaeb7d authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed merge error during rebase

上级 77ad25de
...@@ -348,14 +348,6 @@ def ifelse(condition, then_branch, else_branch, name=None): ...@@ -348,14 +348,6 @@ def ifelse(condition, then_branch, else_branch, name=None):
'branch.' % 'branch.' %
(then_branch_elem.type, else_branch_elem.type)) (then_branch_elem.type, else_branch_elem.type))
raise ValueError(
('The two branches should have identical types, '
' but they are '+str(then_branch_elem.type)+' and '+
str(else_branch_elem.type)+' respectively. '
'This error could be raised if for example '
' you provided a one element list on the then '
' branch but a tensor on the else branch'))
new_then_branch.append(then_branch_elem) new_then_branch.append(then_branch_elem)
new_else_branch.append(else_branch_elem) new_else_branch.append(else_branch_elem)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论