提交 c64edd43 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

added R_op for shape

上级 0208082c
......@@ -1712,6 +1712,9 @@ class Shape(Op):
out[0] = theano._asarray(x.shape, dtype = 'int64')
def grad(self, inp, grads):
return [None]
def R_op(self, inputs, eval_points):
return [None]
@constructor
def old_shape(a):
"""Return the shape tuple of a TensorType Variable, it may be either symbolic or nonsymbolic.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论