提交 799f4b7d authored 作者: Ian Goodfellow's avatar Ian Goodfellow

made the old version of grad use the old version of grad_sources_inputs

上级 42eef1cc
...@@ -776,7 +776,7 @@ def grad_wrong(cost, wrt, g_cost=None, consider_constant=None, warn_type=False, ...@@ -776,7 +776,7 @@ def grad_wrong(cost, wrt, g_cost=None, consider_constant=None, warn_type=False,
from theano import tensor from theano import tensor
g_cost = tensor.ones_like(cost) g_cost = tensor.ones_like(cost)
inputs = gof.graph.inputs([cost]) inputs = gof.graph.inputs([cost])
gmap = grad_sources_inputs( gmap = grad_sources_inputs_aside(
[(cost, g_cost)], [(cost, g_cost)],
list(inputs) + list(consider_constant), list(inputs) + list(consider_constant),
warn_type=warn_type) warn_type=warn_type)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论