提交 63486ff1 authored 作者: Frederic's avatar Frederic

Make more clear the memory profiler output.

上级 7192820f
...@@ -689,20 +689,19 @@ class ProfileStats(object): ...@@ -689,20 +689,19 @@ class ProfileStats(object):
else: else:
print >> file, "Memory Profile" print >> file, "Memory Profile"
print >> file, "---" print >> file, "---"
# print >> file, " Max if no gc, inplace and view: %dKB" % int(
print >> file, " Max without gc, inplace and view: %dKB" % int( # round(max_sum_size / 1024))
round(max_sum_size / 1024)) print >> file, " Max if linker=cvm (default): unknow"
print >> file, " Max if no gc (allow_gc=False): %dKB" % int(round(
print >> file, " Max allow_gc=False: %dKB" % int(round( max_node_memory_size / 1024.))
max_node_memory_size / 1024.)) print >> file, " Max if linker=c|py: %dKB" % int(round(
print >> file, " Max linker=c|py: %dKB" % int(round(
max_running_max_memory_size / 1024.)) max_running_max_memory_size / 1024.))
print >> file, " Memory saved by view: %dKB" % int(round( # print >> file, " Memory saved if view are used: %dKB" % int(round(
max_node_memory_saved_by_view / 1024.)) # max_node_memory_saved_by_view / 1024.))
print >> file, " Memory saved by inplace: %dKB" % int(round( # print >> file, " Memory saved if inplace op are used: %dKB" % int(
max_node_memory_saved_by_inplace / 1024.)) # round(max_node_memory_saved_by_inplace / 1024.))
print >> file, " Memory saved by GC: %dKB" % int(round(( print >> file, " Memory saved if gc is enabled (linker=c|py): %dKB" % int(
max_node_memory_size - max_running_max_memory_size) / 1024.)) round(max_node_memory_size - max_running_max_memory_size) / 1024.)
if (hasattr(theano, 'sandbox') and if (hasattr(theano, 'sandbox') and
hasattr(theano.sandbox, 'cuda') and hasattr(theano.sandbox, 'cuda') and
hasattr(theano.sandbox.cuda, 'cuda_ndarray') and hasattr(theano.sandbox.cuda, 'cuda_ndarray') and
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论