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

Do not emmit confusing warning from FusionOptimizer by default

上级 ec45e25f
...@@ -699,12 +699,10 @@ class FusionOptimizer(GraphRewriter): ...@@ -699,12 +699,10 @@ 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:
warn( if config.optimizer_verbose:
"Optimization Warning: " warn(
f"The Op {node.op.scalar_op} does not provide a C implementation." f"Loop fusion interrupted because {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
# Fuseable nodes have to be accessed in a deterministic manner # Fuseable nodes have to be accessed in a deterministic manner
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论