提交 5e77a3c5 authored 作者: Tanjay94's avatar Tanjay94

Isolated Scipy dependent function in slinalg.py.

上级 921b6c2b
...@@ -14,6 +14,7 @@ from theano.tensor.opt import (register_stabilize, ...@@ -14,6 +14,7 @@ from theano.tensor.opt import (register_stabilize,
from theano.gof import local_optimizer from theano.gof import local_optimizer
from theano.gof.opt import Optimizer from theano.gof.opt import Optimizer
from theano.gradient import DisconnectedType from theano.gradient import DisconnectedType
from theano.tensor.nlinalg import ( MatrixInverse, from theano.tensor.nlinalg import ( MatrixInverse,
matrix_inverse, matrix_inverse,
AllocDiag, AllocDiag,
...@@ -33,6 +34,18 @@ from theano.tensor.nlinalg import ( MatrixInverse, ...@@ -33,6 +34,18 @@ from theano.tensor.nlinalg import ( MatrixInverse,
_zero_disconnected _zero_disconnected
) )
from theano.tensor.slinalg import ( Cholesky,
cholesky,
CholeskyGrad,
MatrixPinv,
pinv,
Solve,
solve,
Eigvalsh,
EigvalshGrad,
eigvalsh
)
try: try:
import scipy.linalg import scipy.linalg
imported_scipy = True imported_scipy = True
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论