module { func.func @main(%policy_win: tensor<2x7xf32>, %policy_lose: tensor<2x7xf32>, %ref_win: tensor<2x7xf32>, %ref_lose: tensor<2x7xf32>, %beta: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) { %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32> %v1 = stablehlo.subtract %policy_win, %policy_lose : tensor<2x7xf32> %v2 = stablehlo.subtract %ref_win, %ref_lose : tensor<2x7xf32> %v3 = stablehlo.subtract %v1, %v2 : tensor<2x7xf32> %v4 = stablehlo.multiply %beta, %v3 : tensor<2x7xf32> %v5 = stablehlo.negate %v4 : tensor<2x7xf32> %v6 = stablehlo.maximum %v5, %v0 : tensor<2x7xf32> %v7 = stablehlo.abs %v4 : tensor<2x7xf32> %v8 = stablehlo.negate %v7 : tensor<2x7xf32> %v9 = stablehlo.exponential %v8 : tensor<2x7xf32> %v10 = stablehlo.log_plus_one %v9 : tensor<2x7xf32> %v11 = stablehlo.add %v6, %v10 : tensor<2x7xf32> %v12 = stablehlo.negate %beta : tensor<2x7xf32> %v13 = stablehlo.logistic %v5 : tensor<2x7xf32> %v14 = stablehlo.multiply %v12, %v13 : tensor<2x7xf32> return %v11, %v14 : tensor<2x7xf32>, tensor<2x7xf32> } }