提交 d0f80b0b authored 作者: Brandon T. Willard's avatar Brandon T. Willard

Remove deprecated theano.sandbox modules

上级 87e28b28
import warnings
from theano.tensor.nnet.blocksparse import (
SparseBlockGemv,
SparseBlockOuter,
sparse_block_dot,
sparse_block_gemv,
sparse_block_gemv_inplace,
sparse_block_outer,
sparse_block_outer_inplace,
)
__all__ = [
SparseBlockGemv,
SparseBlockOuter,
sparse_block_dot,
sparse_block_gemv,
sparse_block_gemv_inplace,
sparse_block_outer,
sparse_block_outer_inplace,
]
warnings.warn(
"theano.sandbox.blocksparse does not exist anymore,"
"it has been moved to theano.tensor.nnet.blocksparse.",
category=DeprecationWarning,
)
from warnings import warn
warn(
"theano.sandbox.conv no longer provides conv. "
"They have been moved to theano.tensor.nnet.conv",
category=DeprecationWarning,
)
from theano.tensor.nnet.nnet import softsign # noqa
from warnings import warn
warn(
"softsign was moved from theano.sandbox.softsign to theano.tensor.nnet.nnet ",
category=DeprecationWarning,
)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论