module { func.func @main(%weight: tensor<2x7xf32>, %grad: tensor<2x7xf32>, %moment: tensor<2x7xf32>, %variance: tensor<2x7xf32>, %lr: tensor<2x7xf32>, %decay: tensor<2x7xf32>, %correction1: tensor<2x7xf32>, %correction2: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32>) { %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32> %v1 = stablehlo.constant dense<9.00000000000000022e-01> : tensor<2x7xf32> %v2 = stablehlo.multiply %v1, %moment : tensor<2x7xf32> %v3 = stablehlo.constant dense<1.00000000000000006e-01> : tensor<2x7xf32> %v4 = stablehlo.multiply %v3, %grad : tensor<2x7xf32> %v5 = stablehlo.add %v2, %v4 : tensor<2x7xf32> %v6 = stablehlo.constant dense<9.98999999999999999e-01> : tensor<2x7xf32> %v7 = stablehlo.multiply %v6, %variance : tensor<2x7xf32> %v8 = stablehlo.constant dense<1.00000000000000002e-03> : tensor<2x7xf32> %v9 = stablehlo.multiply %v8, %grad : tensor<2x7xf32> %v10 = stablehlo.multiply %v9, %grad : tensor<2x7xf32> %v11 = stablehlo.add %v7, %v10 : tensor<2x7xf32> %v12 = stablehlo.constant dense<1.00000000000000000e+00> : tensor<2x7xf32> %v13 = stablehlo.multiply %lr, %decay : tensor<2x7xf32> %v14 = stablehlo.subtract %v12, %v13 : tensor<2x7xf32> %v15 = stablehlo.multiply %weight, %v14 : tensor<2x7xf32> %v16 = stablehlo.divide %v5, %correction1 : tensor<2x7xf32> %v17 = stablehlo.multiply %lr, %v16 : tensor<2x7xf32> %v18 = stablehlo.divide %v11, %correction2 : tensor<2x7xf32> %v19 = stablehlo.sqrt %v18 : tensor<2x7xf32> %v20 = stablehlo.constant dense<1.00000000000000002e-08> : tensor<2x7xf32> %v21 = stablehlo.add %v19, %v20 : tensor<2x7xf32> %v22 = stablehlo.divide %v17, %v21 : tensor<2x7xf32> %v23 = stablehlo.subtract %v15, %v22 : tensor<2x7xf32> return %v23, %v5, %v11 : tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32> } }