module { func.func @main(%x: tensor<2x7xf32>, %residual: tensor<2x7xf32>, %gain: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) { %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32> %v1 = stablehlo.add %x, %residual : tensor<2x7xf32> %v2 = stablehlo.constant dense<1.00000000000000000e+00> : tensor<2x7xf32> %v3 = stablehlo.multiply %v1, %v1 : tensor<2x7xf32> %v4 = stablehlo.constant dense<0.00000000000000000e+00> : tensor %v5 = stablehlo.reduce(%v3 init: %v4) applies stablehlo.add across dimensions = [1] : (tensor<2x7xf32>, tensor) -> tensor<2xf32> %v6 = stablehlo.broadcast_in_dim %v5, dims = [0] : (tensor<2xf32>) -> tensor<2x7xf32> %v7 = stablehlo.constant dense<7.0> : tensor<2x7xf32> %v8 = stablehlo.divide %v6, %v7 : tensor<2x7xf32> %v9 = stablehlo.constant dense<1.00000000000000008e-05> : tensor<2x7xf32> %v10 = stablehlo.add %v8, %v9 : tensor<2x7xf32> %v11 = stablehlo.sqrt %v10 : tensor<2x7xf32> %v12 = stablehlo.divide %v2, %v11 : tensor<2x7xf32> %v13 = stablehlo.multiply %v1, %v12 : tensor<2x7xf32> %v14 = stablehlo.multiply %v13, %gain : tensor<2x7xf32> return %v1, %v14 : tensor<2x7xf32>, tensor<2x7xf32> } }