提交 2c2ce0d2 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fixed grad method of shape op

上级 e571b789
...@@ -2111,7 +2111,7 @@ class Shape(Op): ...@@ -2111,7 +2111,7 @@ class Shape(Op):
# the elements of the tensor variable do not participate # the elements of the tensor variable do not participate
# in the computation of the shape, so they are not really # in the computation of the shape, so they are not really
# part of the graph # part of the graph
return [None] return [ DisconnectedType()() ]
def R_op(self, inputs, eval_points): def R_op(self, inputs, eval_points):
return [None] return [None]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论