module { func.func @main(%x: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32>) { %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32> %v1 = stablehlo.constant dense<3.40282346000000007e+38> : tensor %v2 = stablehlo.reduce(%x init: %v1) applies stablehlo.minimum across dimensions = [1] : (tensor<2x7xf32>, tensor) -> tensor<2xf32> %v3 = stablehlo.broadcast_in_dim %v2, dims = [0] : (tensor<2xf32>) -> tensor<2x7xf32> %v4 = stablehlo.minimum %v3, %v0 : tensor<2x7xf32> %v5 = stablehlo.constant dense<-3.40282346000000007e+38> : tensor %v6 = stablehlo.reduce(%x init: %v5) applies stablehlo.maximum across dimensions = [1] : (tensor<2x7xf32>, tensor) -> tensor<2xf32> %v7 = stablehlo.broadcast_in_dim %v6, dims = [0] : (tensor<2xf32>) -> tensor<2x7xf32> %v8 = stablehlo.maximum %v7, %v0 : tensor<2x7xf32> %v9 = stablehlo.subtract %v8, %v4 : tensor<2x7xf32> %v10 = stablehlo.constant dense<2.55000000000000000e+02> : tensor<2x7xf32> %v11 = stablehlo.divide %v9, %v10 : tensor<2x7xf32> %v12 = stablehlo.constant dense<9.99999999999999945e-21> : tensor<2x7xf32> %v13 = stablehlo.maximum %v11, %v12 : tensor<2x7xf32> %v14 = stablehlo.negate %v4 : tensor<2x7xf32> %v15 = stablehlo.divide %v14, %v13 : tensor<2x7xf32> %v16 = stablehlo.round_nearest_even %v15 : tensor<2x7xf32> %v17 = stablehlo.maximum %v16, %v0 : tensor<2x7xf32> %v18 = stablehlo.minimum %v17, %v10 : tensor<2x7xf32> %v19 = stablehlo.divide %x, %v13 : tensor<2x7xf32> %v20 = stablehlo.round_nearest_even %v19 : tensor<2x7xf32> %v21 = stablehlo.add %v20, %v18 : tensor<2x7xf32> %v22 = stablehlo.maximum %v21, %v0 : tensor<2x7xf32> %v23 = stablehlo.minimum %v22, %v10 : tensor<2x7xf32> %v24 = stablehlo.subtract %v23, %v18 : tensor<2x7xf32> %v25 = stablehlo.multiply %v24, %v13 : tensor<2x7xf32> return %v23, %v25, %v18, %v13 : tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32> } }