提交 7834b546 authored 作者: Reyhane Askari's avatar Reyhane Askari

change of some strings

上级 986afeb4
...@@ -3046,16 +3046,15 @@ class CheckStrackTraceFeature(object): ...@@ -3046,16 +3046,15 @@ class CheckStrackTraceFeature(object):
if theano.config.check_stack_trace == 'check_all': if theano.config.check_stack_trace == 'check_all':
if not check_stack_trace(fgraph, 'all'): if not check_stack_trace(fgraph, 'all'):
raise NotImplementedError( raise NotImplementedError(
"Empty stack trace! The optimization that whose" 'Empty stack trace! The optimization that inserted that variable is' + str(reason))
" stacktrace is empty is" + str(reason))
if theano.config.check_stack_trace == 'check_and_skip': if theano.config.check_stack_trace == 'check_and_skip':
if not check_stack_trace(fgraph, 'all'): if not check_stack_trace(fgraph, 'all'):
apply_nodes_to_check = fgraph.apply_nodes apply_nodes_to_check = fgraph.apply_nodes
for node in apply_nodes_to_check: for node in apply_nodes_to_check:
for output in node.outputs: for output in node.outputs:
if not hasattr(output.tag, 'trace') or not output.tag.trace: if not hasattr(output.tag, 'trace') or not output.tag.trace:
output.tag.trace = [[('/dummy/path', 0, 'This is a dummy value! The stack trace of ' + output.tag.trace = [[('', 0, 'Empty stack trace! The optimization that' +
str(reason) + ' was empty!', 'dummy(value)')]] 'inserted that variable is ' + str(reason), '')]]
class CheckStackTraceOptimization(Optimizer): class CheckStackTraceOptimization(Optimizer):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论