You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ttir.clamp; if constant values can be determined for min/max
ttir.maximum followed by ttir.minimum; if constant values can not be determined.
Currently, the conversion only look if a constant is directly used in stablehlo.clamp op which may not always be the case. A constant can be converted/reshaped before being used in stablehlo.clamp op. In this case, stablehlo.clmap is lowered to ttir.maximum/ttir.minimum. However, this pattern fails as ttnn.maximum/ttnn.minimum does not support implicit broadcast.
stablehlo.clamp is lowered to either
Currently, the conversion only look if a constant is directly used in stablehlo.clamp op which may not always be the case. A constant can be converted/reshaped before being used in stablehlo.clamp op. In this case, stablehlo.clmap is lowered to ttir.maximum/ttir.minimum. However, this pattern fails as ttnn.maximum/ttnn.minimum does not support implicit broadcast.
A sample stablehlo IR
Lowered to TTIR
Error message
The text was updated successfully, but these errors were encountered: