Open avik-pal opened 2 hours ago
The HLO seems fine:
Module:
module attributes {transform.with_named_sequence} {
func.func @main(%arg0: tensor<i1>) -> tensor<i1> {
%c = stablehlo.constant dense<true> : tensor<i1>
%0 = stablehlo.compare EQ, %arg0, %c : (tensor<i1>, tensor<i1>) -> tensor<i1>
return %0 : tensor<i1>
}
}
With the patch it is
Module:
module attributes {transform.with_named_sequence} {
func.func @main(%arg0: tensor<i1>) -> tensor<i1> {
%0 = stablehlo.not %arg0 : tensor<i1>
return %0 : tensor<i1>
}
}
Strange part is that it changes results with each compilation. If we compile and re-run the results are consistent