提交 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):
if node.op.scalar_op.supports_c_code(node.inputs, node.outputs):
return True
else:
warn(
"Optimization Warning: "
f"The Op {node.op.scalar_op} does not provide a C implementation."
" As well as being potentially slow, this also disables "
"loop fusion."
)
if config.optimizer_verbose:
warn(
f"Loop fusion interrupted because {node.op.scalar_op} does not provide a C implementation."
)
return False
# Fuseable nodes have to be accessed in a deterministic manner
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论