提交 d8ab8aa5 authored 作者: Frederic's avatar Frederic

better message following code review.

上级 980ec808
......@@ -709,10 +709,6 @@ class ProfileStats(object):
" <Apply outputs shape>"
" <created/inplace/view>"
" <Apply node>")
print >> file, (
" <created/inplace/view> is taked from the op declaration.")
print >> file, (" Use DebugMode for warnings about inplace/view"
" declaration being respected.")
print >> file, ""
items = node_mem.items()
items.sort(key=lambda a: a[1])
......@@ -736,6 +732,13 @@ class ProfileStats(object):
sum_remaining,
sum_remaining / size_sum)
print >> file, ''
print >> file, (
" <created/inplace/view> is taked from the op declaration.")
print >> file, (" Apply nodes marked 'inplace' or 'view' may"
" actually allocate memory, this is not reported"
" here. If you use DebugMode, warnings will be"
" emitted in those cases.")
print >> file, ''
def summary(self, file=sys.stderr, n_ops_to_print=20,
n_applies_to_print=20):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论