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

Remove debug lines

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