提交 7bb31a2a authored 作者: Yoshua Bengio's avatar Yoshua Bengio

Fixed shape.grad

上级 266c9209
......@@ -476,7 +476,7 @@ class Shape(Op):
def perform(self, node, (x, ), (out, )):
out[0] = numpy.asarray(x.shape)
def grad(self, (x,), (gz,)):
raise ValueError
return [None]
shape = Shape()
class Argmax(Op):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论