Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mhlo (0.08 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize_hlo.mlir

    func.func @sigmoid(%arg0: tensor<2xf32>) -> tensor<2xf32> {
      %0 = mhlo.constant dense<5.000000e-01> : tensor<f32>
      %1 = mhlo.constant dense<2> : tensor<1xi64>
      %2 = mhlo.constant dense<5.000000e-01> : tensor<2xf32>
      %3 = mhlo.multiply %arg0, %2 : tensor<2xf32>
      %4 = "mhlo.tanh"(%3) : (tensor<2xf32>) -> tensor<2xf32>
      %5 = mhlo.multiply %4, %2 : tensor<2xf32>
      %6 = mhlo.add %5, %2 : tensor<2xf32>
      func.return %6 : tensor<2xf32>
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 340.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

      }
    };
    
    // Converts TensorFlow DiagPartOp to HLO ops using reduction on masked matrix.
    // For a Rank-2 input, it creates the following ops:
    //   %1 = "mhlo.iota"() {iota_dimension = 0 : i64}
    //   %2 = "mhlo.iota"() {iota_dimension = 1 : i64}
    //   %3 = "mhlo.compare"(%1, %2) {comparison_direction = "EQ"}
    //   %4 = mhlo.constant dense<0.000000e+00> : tensor<f32>
    //   %5 = "mhlo.broadcast"(%4)
    //   %6 = "mhlo.select"(%3, %input, %5)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top