We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec45e25 commit 20b6a20Copy full SHA for 20b6a20
pytensor/tensor/rewriting/elemwise.py
@@ -699,12 +699,10 @@ def elemwise_scalar_op_has_c_code(node: Apply) -> bool:
699
if node.op.scalar_op.supports_c_code(node.inputs, node.outputs):
700
return True
701
else:
702
- warn(
703
- "Optimization Warning: "
704
- f"The Op {node.op.scalar_op} does not provide a C implementation."
705
- " As well as being potentially slow, this also disables "
706
- "loop fusion."
707
- )
+ if config.optimizer_verbose:
+ warn(
+ f"Loop fusion interrupted because {node.op.scalar_op} does not provide a C implementation."
+ )
708
return False
709
710
# Fuseable nodes have to be accessed in a deterministic manner
0 commit comments