提交 4477f0a1 authored 作者: Roy Xue's avatar Roy Xue

Small fixes: add comments, remove unused word

上级 6b0a7569
...@@ -669,6 +669,7 @@ class ProfileStats(object): ...@@ -669,6 +669,7 @@ class ProfileStats(object):
running_max_memory_size = 0 running_max_memory_size = 0
node_memory_saved_by_view = 0 node_memory_saved_by_view = 0
node_memory_saved_by_inplace = 0 node_memory_saved_by_inplace = 0
# This take only the inputs/outputs dependencies.
dependencies = fgraph.profile.dependencies dependencies = fgraph.profile.dependencies
# Initial compute_map which is used to check if a node is valid # Initial compute_map which is used to check if a node is valid
...@@ -975,7 +976,7 @@ class ProfileStats(object): ...@@ -975,7 +976,7 @@ class ProfileStats(object):
min_peak = count_minimum_peak(node_list, fgraph, nodes_mem) min_peak = count_minimum_peak(node_list, fgraph, nodes_mem)
min_max_peak = max(min_max_peak, min_peak) min_max_peak = max(min_max_peak, min_peak)
del fgraph, nodes_mem, node del fgraph, nodes_mem
if len(fct_memory) > 1: if len(fct_memory) > 1:
print >> file, ("Memory Profile " print >> file, ("Memory Profile "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论