提交 cf49d2bc authored 作者: Josh Bleecher Snyder's avatar Josh Bleecher Snyder

Use warnings module to issue DeprecationWarning instead of printing to stderr

上级 eb873a04
import sys import warnings
print >> sys.stderr, "DEPRECATION: theano.compile.sandbox no longer provides shared, shared_constructor, and pfunc. They have been moved to theano.compile." warnings.warn("theano.compile.sandbox no longer provides shared, shared_constructor, and pfunc. They have been moved to theano.compile.", DeprecationWarning)
from theano.compile.sharedvalue import shared, shared_constructor from theano.compile.sharedvalue import shared, shared_constructor
from theano.compile.pfunc import pfunc from theano.compile.pfunc import pfunc
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论