module {
  func.func @main(%x: tensor<2x7xf32>, %gate: tensor<2x7xf32>, %upstream: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32>) {
    %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32>
    %v1 = stablehlo.logistic %gate : tensor<2x7xf32>
    %v2 = stablehlo.multiply %gate, %v1 : tensor<2x7xf32>
    %v3 = stablehlo.multiply %x, %v2 : tensor<2x7xf32>
    %v4 = stablehlo.multiply %upstream, %v2 : tensor<2x7xf32>
    %v5 = stablehlo.multiply %upstream, %x : tensor<2x7xf32>
    %v6 = stablehlo.constant dense<1.00000000000000000e+00> : tensor<2x7xf32>
    %v7 = stablehlo.subtract %v6, %v1 : tensor<2x7xf32>
    %v8 = stablehlo.multiply %v2, %v7 : tensor<2x7xf32>
    %v9 = stablehlo.add %v1, %v8 : tensor<2x7xf32>
    %v10 = stablehlo.multiply %v5, %v9 : tensor<2x7xf32>
    return %v3, %v4, %v10 : tensor<2x7xf32>, tensor<2x7xf32>, tensor<2x7xf32>
  }
}
