提交 eec4324f authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Update check for non-available gradient.

上级 f9c3d2b5
...@@ -693,7 +693,7 @@ class Elemwise(Op): ...@@ -693,7 +693,7 @@ class Elemwise(Op):
#sum out the broadcasted dimensions #sum out the broadcasted dimensions
for i, ipt in enumerate(inputs): for i, ipt in enumerate(inputs):
if rval[i] is None: if isinstance(rval[i].type, (NullType, DisconnectedType)):
continue continue
# list of all the dimensions that are broadcastable for input[i] so # list of all the dimensions that are broadcastable for input[i] so
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论