提交 9f16d1fe authored 作者: Roy Xue's avatar Roy Xue

Remove debug lines

上级 de2689f2
......@@ -703,12 +703,8 @@ class ProfileStats(object):
compute_map = defaultdict(lambda: [0])
# compute_map use to check if a node is valid
# for node in node_list:
# for val in node.inputs:
# compute_map[val][0] = 1
for node in fgraph.inputs:
compute_map[node][0] = 1
print fgraph.outputs
def check_node_state(node):
"""
......@@ -743,9 +739,6 @@ class ProfileStats(object):
for i in range(len(node_list)):
v = node_list[i:i+1]
if check_node_state(v[0]):
# print v[0].inputs
# print v[0].outputs
# print compute_map
for node in v[0].outputs:
compute_map[node][0] = 1
if len(node_list) == 1:
......
......@@ -38,13 +38,6 @@ def test_profiling():
buf = StringIO.StringIO()
f.profile.summary(buf)
for line in buf.getvalue().split("\n"):
if "Max if linker=cvm" in line:
print line
elif "Minimum peak from all valid apply node" in line:
print line
elif "order" in line:
print line
finally:
theano.config.profile = old1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论