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

fixed bug in Mul.grad

上级 c211f5f0
...@@ -1202,7 +1202,7 @@ class Mul(ScalarOp): ...@@ -1202,7 +1202,7 @@ class Mul(ScalarOp):
str(gz.type)) str(gz.type))
if output_type in discrete_types: if output_type in discrete_types:
return [ipt.zeros_like.astype(theano.config.floatX) return [ipt.zeros_like().astype(theano.config.floatX)
for ipt in inputs] for ipt in inputs]
for input in inputs: for input in inputs:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论