提交 95d54e10 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

This has been deprecated since sept 2011. It's old enough.

上级 cc463fb9
......@@ -38,24 +38,6 @@ from theano.tensor.sharedvar import tensor_constructor as _shared
from theano.tensor.io import *
def shared(*args, **kw):
"""
Backward-compatibility wrapper around `tensor._shared`.
Once the deprecation warning has been around for long enough, this function
can be deleted.
"""
# Note that we do not use the DeprecationWarning class because it is
# ignored by default since python 2.7.
warnings.warn('`tensor.shared` is deprecated. You should probably be using'
' `theano.shared` instead (if you *really* intend to call '
'`tensor.shared`, you can get rid of this warning by using '
'`tensor._shared`).',
stacklevel=2)
return _shared(*args, **kw)
from theano.tensor import nnet # used for softmax, sigmoid, etc.
from theano.gradient import Rop, Lop, grad, numeric_grad, verify_grad, \
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论