提交 fb256325 authored 作者: Frederic Bastien's avatar Frederic Bastien

disable test value during the optimization AND the creation of thunks.

上级 6649a6ab
......@@ -1475,7 +1475,6 @@ class FunctionMaker(object):
optimizer_profile = self.optimize_graph_with_cache(
optimizer, inputs, outputs)
else:
with theano.configparser.change_flags(compute_test_value="off"):
optimizer_profile = optimizer(fgraph)
end_optimizer = time.time()
......@@ -1800,6 +1799,7 @@ def orig_function(inputs, outputs, mode=None, accept_inplace=False,
fn = None
try:
Maker = getattr(mode, 'function_maker', FunctionMaker)
with theano.configparser.change_flags(compute_test_value="off"):
fn = Maker(inputs,
outputs,
mode,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论