提交 6ec728ef authored 作者: Tanjay94's avatar Tanjay94

Fixed deprecation warning in kron.py.

上级 2043d632
from theano import tensor from theano import tensor
from theano.tensor.slinalg import kron from theano.tensor.slinalg import kron
def deprecation_warning(): warnings.warn(
# Make sure the warning is displayed only once.
if deprecation_warning.already_displayed:
return
warnings.warn(
"theano modules are deprecated and will be removed in release 0.7", "theano modules are deprecated and will be removed in release 0.7",
stacklevel=3) stacklevel=3)
deprecation_warning.already_displayed = True deprecation_warning.already_displayed = True
\ No newline at end of file \ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论