提交 3542c4a2 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Allow old pickles to load.

上级 38b88986
...@@ -5,6 +5,9 @@ from basic import TensorType, _tensor_py_operators, autocast_int, autocast_float ...@@ -5,6 +5,9 @@ from basic import TensorType, _tensor_py_operators, autocast_int, autocast_float
from theano.compile import shared_constructor, SharedVariable from theano.compile import shared_constructor, SharedVariable
from theano import config from theano import config
def load_shared_variable(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}__
class TensorSharedVariable(_tensor_py_operators, SharedVariable): class TensorSharedVariable(_tensor_py_operators, SharedVariable):
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论