提交 3eeff11b authored 作者: Frederic's avatar Frederic

Do not print the memory profile when the information isn't available.

上级 36e1a5b0
......@@ -808,7 +808,7 @@ class ProfileStats(object):
elif self.fct_callcount > 0:
print >> file, (" No execution time accumulated "
"(hint: try config profiling.time_thunks=1)")
if config.profile_memory:
if self.variable_shape or self.variable_strides:
self.summary_memory(file, n_apply_to_print)
if self.optimizer_profile:
print "Optimizer Profile"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论