提交 5ff2be4e authored 作者: David Warde-Farley's avatar David Warde-Farley

Make grad method raise NotImplementedError

上级 d4804afc
...@@ -346,8 +346,11 @@ class Cholesky(Op): ...@@ -346,8 +346,11 @@ class Cholesky(Op):
x = inputs[0] x = inputs[0]
z = outputs[0] z = outputs[0]
z[0] = scipy.linalg.cholesky(x, lower=self.lower).astype(x.dtype) z[0] = scipy.linalg.cholesky(x, lower=self.lower).astype(x.dtype)
#def grad(self, (x, y), (gz,)):
#return dot(gz, y), dot(x, gz) #no transposing necessary def grad(self, inputs, gradients):
raise NotImplementedError(
"See http://github.com/Theano/Theano/issues/207"
)
cholesky = Cholesky() cholesky = Cholesky()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论