提交 6bc3257a authored 作者: Li's avatar Li 提交者: Frederic

minor changes

上级 5b430278
...@@ -1234,11 +1234,9 @@ class FunctionMaker(object): ...@@ -1234,11 +1234,9 @@ class FunctionMaker(object):
# Fetch the optimizer and linker # Fetch the optimizer and linker
optimizer, linker = mode.optimizer, copy.copy(mode.linker) optimizer, linker = mode.optimizer, copy.copy(mode.linker)
if need_opt:
compute_test_value_orig = theano.config.compute_test_value compute_test_value_orig = theano.config.compute_test_value
add_stack_trace_on_call_orig = gof.Op.add_stack_trace_on_call add_stack_trace_on_call_orig = gof.Op.add_stack_trace_on_call
if need_opt:
try: try:
# optimize the fgraph # optimize the fgraph
theano.config.compute_test_value = theano.config.compute_test_value_opt theano.config.compute_test_value = theano.config.compute_test_value_opt
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论