提交 a8fafb1a authored 作者: Li's avatar Li

addressed some comments by P.L., some docstrings are still missing

上级 52cb8ec7
......@@ -547,9 +547,9 @@ AddConfigVar('check_input',
BoolParam(True))
AddConfigVar('cache_optimizations',
"WARNING: work in progress, does not work yet."
"Specify if the optimization cache should be used. This cache will"
"any optimized graph and its optimization. Actually slow downs a lot"
"the first optimization, and could possibly still contains some bugs."
"WARNING: work in progress, does not work yet. "
"Specify if the optimization cache should be used. This cache will "
"any optimized graph and its optimization. Actually slow downs a lot "
"the first optimization, and could possibly still contains some bugs. "
"Use at your own risks.",
BoolParam(False))
......@@ -24,3 +24,8 @@ class TFunctionGraph(unittest.TestCase):
s = pickle.dumps(func)
func2 = pickle.loads(s)
vec = numpy.random.uniform(size=100)
assert func[vec] == func2(vec)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论