提交 c211f5f0 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

made Elemwise.Rop know about DisconnectedType

上级 fbaa19c6
...@@ -606,7 +606,8 @@ class Elemwise(Op): ...@@ -606,7 +606,8 @@ class Elemwise(Op):
# the right thing to do .. have to talk to Ian and James # the right thing to do .. have to talk to Ian and James
# about it # about it
if bgrads[jdx] is None: if bgrads[jdx] is None or \
isinstance(bgrads[jdx].type, DisconnectedType):
pass pass
elif eval_point is not None: elif eval_point is not None:
if rop_out is None: if rop_out is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论