提交 e25b4c7c authored 作者: abergeron's avatar abergeron

Merge pull request #2958 from nouiz/default

Change default value of reoptimize_unpickled_function
......@@ -68,7 +68,8 @@ should reoptimize its graph or not. Theano users can use the standard python pic
tools to save a compiled theano function. When pickling, both graph before and
after the optimization are saved, including shared variables. When set to True,
the graph is reoptimized when being unpickled. Otherwise, skip the graph optimization
and use directly the optimized graph from the pickled file.
and use directly the optimized graph from the pickled file. After Theano 0.7,
the default changed to False.
Faster Theano function
----------------------
......
......@@ -843,7 +843,7 @@ import theano and print the config variable, as in:
.. attribute:: reoptimize_unpickled_function
Bool value, default: True
Bool value, default: False (changed in master after Theano 0.7 release)
Theano users can use the standard python pickle tools to save a compiled
theano function. When pickling, both graph before and after the optimization
......
......@@ -536,7 +536,7 @@ AddConfigVar('unpickle_function',
AddConfigVar(
'reoptimize_unpickled_function',
"Re-optimize the graph when a theano function is unpickled from the disk.",
BoolParam(True, allow_override=True),
BoolParam(False, allow_override=True),
in_c_key=False)
"""Note to developers:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论