提交 607fbc41 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Redone fix originally done by Fred for the old scan ( i.e. not to print

profiling information if the scan op did not run )
上级 5713a048
...@@ -959,7 +959,8 @@ def profile_printer(fct_name, compile_time, fct_call_time, fct_call, ...@@ -959,7 +959,8 @@ def profile_printer(fct_name, compile_time, fct_call_time, fct_call,
apply_time, op_cimpl, message, outputs_size, apply_time, op_cimpl, message, outputs_size,
other_time): other_time):
# Scan overhead profile # Scan overhead profile
if any([isinstance(node.op, Scan) for (_,node) in apply_time.keys()]): if any([isinstance(node.op, Scan) and v>0 for (_,node),v in
apply_time.items()]):
print print
print 'Scan overhead:' print 'Scan overhead:'
print '<Scan op time(s)> <sub scan fct time(s)> <sub scan op time(s)> <sub scan fct time(% scan op time)> <sub scan op time(% scan op time)> <node>' print '<Scan op time(s)> <sub scan fct time(s)> <sub scan op time(s)> <sub scan fct time(% scan op time)> <sub scan op time(% scan op time)> <node>'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论