提交 6c07f25b authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fixed broken attempt to move Lop to the new interface

上级 344f5adb
......@@ -344,8 +344,8 @@ def Lop(f, wrt, eval_points, consider_constant=None,
known = dict(zip(f, eval_points))
gmap = grad(cost=None, known_grads=known,
consider_constant=wrt, wrt=wrt)
gmap = dict(zip(wrt, grad(cost=None, known_grads=known,
consider_constant=wrt, wrt=wrt)))
# Note : If p is not in gmap there can be several reasons, among which
# is the fact that p might not be part of the computational graph. A
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论