提交 3fb6a621 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Document the load_shared_pickle function as being expandable.

上级 3542c4a2
...@@ -6,6 +6,9 @@ from theano.compile import shared_constructor, SharedVariable ...@@ -6,6 +6,9 @@ from theano.compile import shared_constructor, SharedVariable
from theano import config from theano import config
def load_shared_variable(val): def load_shared_variable(val):
"""This function is only here to keep some pickles loading
after a failed fix done in August 2011.
It can be removed after sufficient time has passed."""
return tensor_constructor(val) return tensor_constructor(val)
# _tensor_py_operators is first to have its version of __{gt,ge,lt,le}__ # _tensor_py_operators is first to have its version of __{gt,ge,lt,le}__
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论