提交 20b6a20c authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

Do not emmit confusing warning from FusionOptimizer by default

上级 ec45e25f
...@@ -699,11 +699,9 @@ class FusionOptimizer(GraphRewriter): ...@@ -699,11 +699,9 @@ class FusionOptimizer(GraphRewriter):
if node.op.scalar_op.supports_c_code(node.inputs, node.outputs): if node.op.scalar_op.supports_c_code(node.inputs, node.outputs):
return True return True
else: else:
if config.optimizer_verbose:
warn( warn(
"Optimization Warning: " f"Loop fusion interrupted because {node.op.scalar_op} does not provide a C implementation."
f"The Op {node.op.scalar_op} does not provide a C implementation."
" As well as being potentially slow, this also disables "
"loop fusion."
) )
return False return False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论