module { func.func @main(%prediction: tensor<2x7xf32>, %target: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) { %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32> %v1 = stablehlo.constant dense<2.00000000000000000e+00> : tensor<2x7xf32> %v2 = stablehlo.multiply %prediction, %target : tensor<2x7xf32> %v3 = stablehlo.constant dense<0.00000000000000000e+00> : tensor %v4 = stablehlo.reduce(%v2 init: %v3) applies stablehlo.add across dimensions = [1] : (tensor<2x7xf32>, tensor) -> tensor<2xf32> %v5 = stablehlo.broadcast_in_dim %v4, dims = [0] : (tensor<2xf32>) -> tensor<2x7xf32> %v6 = stablehlo.multiply %v1, %v5 : tensor<2x7xf32> %v7 = stablehlo.constant dense<1.00000000000000000e+00> : tensor<2x7xf32> %v8 = stablehlo.add %v6, %v7 : tensor<2x7xf32> %v9 = stablehlo.add %prediction, %target : tensor<2x7xf32> %v10 = stablehlo.reduce(%v9 init: %v3) applies stablehlo.add across dimensions = [1] : (tensor<2x7xf32>, tensor) -> tensor<2xf32> %v11 = stablehlo.broadcast_in_dim %v10, dims = [0] : (tensor<2xf32>) -> tensor<2x7xf32> %v12 = stablehlo.add %v11, %v7 : tensor<2x7xf32> %v13 = stablehlo.divide %v8, %v12 : tensor<2x7xf32> %v14 = stablehlo.subtract %v7, %v13 : tensor<2x7xf32> %v15 = stablehlo.multiply %v1, %target : tensor<2x7xf32> %v16 = stablehlo.multiply %v15, %v12 : tensor<2x7xf32> %v17 = stablehlo.subtract %v8, %v16 : tensor<2x7xf32> %v18 = stablehlo.multiply %v12, %v12 : tensor<2x7xf32> %v19 = stablehlo.divide %v17, %v18 : tensor<2x7xf32> return %v14, %v19 : tensor<2x7xf32>, tensor<2x7xf32> } }