module { func.func @main(%x: tensor<2x7xf32>, %gate: tensor<2x7xf32>, %upstream: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32>) { %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32> %v1 = stablehlo.maximum %gate, %v0 : tensor<2x7xf32> %v2 = stablehlo.multiply %x, %v1 : tensor<2x7xf32> %v3 = stablehlo.multiply %upstream, %v1 : tensor<2x7xf32> %v4 = stablehlo.compare GT, %gate, %v0, FLOAT : (tensor<2x7xf32>, tensor<2x7xf32>) -> tensor<2x7xi1> %v5 = stablehlo.multiply %upstream, %x : tensor<2x7xf32> %v6 = stablehlo.select %v4, %v5, %v0 : tensor<2x7xi1>, tensor<2x7xf32> return %v2, %v3, %v6 : tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32> } }