提交 fde8856f authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Auto indentation

上级 8a6c6758
...@@ -323,7 +323,7 @@ class PureOp(object): ...@@ -323,7 +323,7 @@ class PureOp(object):
""" """
node = self.make_node(*inputs, **kwargs) node = self.make_node(*inputs, **kwargs)
self.add_tag_trace(node) self.add_tag_trace(node)
if config.compute_test_value: if config.compute_test_value:
# avoid circular import # avoid circular import
from theano.compile.sharedvalue import SharedVariable from theano.compile.sharedvalue import SharedVariable
...@@ -350,14 +350,14 @@ class PureOp(object): ...@@ -350,14 +350,14 @@ class PureOp(object):
else: else:
# silently skip test # silently skip test
run_perform = False run_perform = False
# if all inputs have test-values, run the actual op # if all inputs have test-values, run the actual op
if run_perform: if run_perform:
# compute output value once with test inputs to validate graph # compute output value once with test inputs to validate graph
output_storage = [[None] * len(node.outputs)] output_storage = [[None] * len(node.outputs)]
node.op.perform(node, input_vals, output_storage) node.op.perform(node, input_vals, output_storage)
# add 'test_value' to output tags, so that downstream ops can use these # add 'test_value' to output tags, so that downstream ops can use these
# numerical values as inputs to their perform method. # numerical values as inputs to their perform method.
for (outval, node_output) in zip(output_storage, node.outputs): for (outval, node_output) in zip(output_storage, node.outputs):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论