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

remove usage of warn_type

上级 c8c80e81
...@@ -1260,7 +1260,7 @@ class Scan(PureOp): ...@@ -1260,7 +1260,7 @@ class Scan(PureOp):
# the gradients with respect to all outputs) # the gradients with respect to all outputs)
def compute_gradient(y, g_y): def compute_gradient(y, g_y):
gmp = gradient.grad_sources_inputs( gmp = gradient.grad_sources_inputs(
[(y, g_y)], diff_inputs, False) [(y, g_y)], diff_inputs)
return [gmp.get(p, None) for p in diff_inputs] return [gmp.get(p, None) for p in diff_inputs]
# 6. clean the outputs (i.e. remove update rules) # 6. clean the outputs (i.e. remove update rules)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论