提交 b9c4f20d authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Michael Osthege

Suppress optimizer verbose from MergeOptimizer when compiling inner fgraph C code of Composite

Otherwise, it will show up everytime a Composite has been cached by th C backend
上级 2db3760d
...@@ -4236,6 +4236,7 @@ class Composite(ScalarInnerGraphOp): ...@@ -4236,6 +4236,7 @@ class Composite(ScalarInnerGraphOp):
# the fgraph to be set to the variable as we need to pickle # the fgraph to be set to the variable as we need to pickle
# them for the cache of c module to work. # them for the cache of c module to work.
fgraph = FunctionGraph(self.inputs, self.outputs) fgraph = FunctionGraph(self.inputs, self.outputs)
with config.change_flags(optimizer_verbose=False):
MergeOptimizer().rewrite(fgraph) MergeOptimizer().rewrite(fgraph)
for node in fgraph.apply_nodes: for node in fgraph.apply_nodes:
if not isinstance(node.op, ScalarOp): if not isinstance(node.op, ScalarOp):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论