提交 002b7cdd authored 作者: Brandon T. Willard's avatar Brandon T. Willard

Reword local_elemwise_fusion_op warnings

上级 3b9dbb06
......@@ -7624,11 +7624,10 @@ def local_elemwise_fusion_op(op_class, max_input_fct=lambda node: 32, maker=None
except (NotImplementedError, MethodNotDefined):
_logger.warning(
(
"%s does not implement the c_code function."
" As well as being potentially slow, this"
" disables loop fusion of this op."
f"The Op {i.owner.op.scalar_op} does not provide a C implementation."
" As well as being potentially slow, this also disables "
"loop fusion."
)
% str(i.owner.op.scalar_op)
)
do_fusion = False
......@@ -7693,11 +7692,10 @@ your code will run correctly, but may be slower."""
except (NotImplementedError, MethodNotDefined):
_logger.warning(
(
"%s does not implement the c_code function."
" As well as being potentially slow, this disables "
"loop fusion of this op."
f"The Op {s_new_out[0].owner.op} does not provide a C implementation."
" As well as being potentially slow, this also disables "
"loop fusion."
)
% str(s_new_out[0].owner.op)
)
# create the composite op.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论