提交 171346e8 authored 作者: Saizheng Zhang's avatar Saizheng Zhang

fix flake8

上级 d20a47ae
...@@ -147,6 +147,8 @@ def print_global_stats(): ...@@ -147,6 +147,8 @@ def print_global_stats():
_profiler_printers = [] _profiler_printers = []
def register_profiler_printer(fct): def register_profiler_printer(fct):
_profiler_printers.append(fct) _profiler_printers.append(fct)
return fct return fct
......
...@@ -2868,7 +2868,7 @@ gof.ops_with_inner_function[Scan] = 'fn' ...@@ -2868,7 +2868,7 @@ gof.ops_with_inner_function[Scan] = 'fn'
@theano.compile.profiling.register_profiler_printer @theano.compile.profiling.register_profiler_printer
def profile_printer(message, compile_time, fct_call_time, def profile_printer(message, compile_time, fct_call_time,
apply_time, apply_cimpl, outputs_size): apply_time, apply_cimpl, outputs_size):
# Scan overhead profile # Scan overhead profile
if any([isinstance(node.op, Scan) and v > 0 for node, v in if any([isinstance(node.op, Scan) and v > 0 for node, v in
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论