提交 563b5349 authored 作者: Frederic Bastien's avatar Frederic Bastien 提交者: sentient07

Make the useless Equilibrium an in2out() with a LocalGroupOpt. Later another…

Make the useless Equilibrium an in2out() with a LocalGroupOpt. Later another commit will make it run all the opt in that Group on the optimized node.
上级 e5ffc7ee
...@@ -381,7 +381,6 @@ def register_useless(lopt, *tags, **kwargs): ...@@ -381,7 +381,6 @@ def register_useless(lopt, *tags, **kwargs):
name = kwargs.pop('name', None) or lopt.__name__ name = kwargs.pop('name', None) or lopt.__name__
compile.mode.local_useless.register(name, lopt, 'last', 'fast_run', compile.mode.local_useless.register(name, lopt, 'last', 'fast_run',
*tags, **kwargs) *tags, **kwargs)
return lopt return lopt
compile.optdb.register('useless', TopoOptimizer(local_useless, order="in_to_out"), 0.6, 'fast_run', 'fast_compile') compile.optdb.register('useless', TopoOptimizer(local_useless, order="in_to_out"), 0.6, 'fast_run', 'fast_compile')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论