Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 209 for mhlo (0.04 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h

    namespace mlir {
    namespace odml {
    
    // Creates a pass which unfuses MHLO batch norm inference op into arithmetic
    // ops.
    std::unique_ptr<Pass> createUnfuseBatchNormPass();
    
    // Creates a pass which constant folds broadcast_in_dim op conditionally.
    std::unique_ptr<Pass> createFoldBroadcastPass();
    
    // Creates a pass which fuses MHLO binary element-wise ops and convolution op.
    std::unique_ptr<Pass> createFuseConvolutionPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/tests/composite-lowering.mlir

      %8 = mhlo.divide %7, %2 : tensor<64xf32>
      %9 = mhlo.floor %8 : tensor<64xf32>
      %10 = mhlo.convert %9 : (tensor<64xf32>) -> tensor<64xi32>
      %11 = mhlo.compare  LT, %10, %1,  SIGNED : (tensor<64xi32>, tensor<64xi32>) -> tensor<64xi1>
      %12 = mhlo.add %10, %0 : tensor<64xi32>
      %13 = mhlo.select %11, %12, %10 : tensor<64xi1>, tensor<64xi32>
      %14 = mhlo.reshape %13 : (tensor<64xi32>) -> tensor<64x1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/tpu_sharding_identification.mlir

      func.return
    }
    
    // CHECK-LABEL: func @func_with_sharding
    // CHECK-SAME: (%{{[a-z0-9]+}}: tensor<*xi32> {mhlo.sharding = "\01\02\03"}, %{{[a-z0-9]+}}: tensor<*xi1> {mhlo.sharding = "\04\05\06"})
    // CHECK-SAME: -> (tensor<*xi32> {mhlo.sharding = "\0A\0B\0C"}, tensor<*xi1> {mhlo.sharding = "\0D\0E\0F"})
    func.func @func_with_sharding(%arg0: tensor<*xi32>, %arg1: tensor<*xi1>) -> (tensor<*xi32>, tensor<*xi1>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 19:07:52 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/tests/optimize.mlir

    // CHECK-LABEL: testDotToDotGeneralVectorVector
    func.func @testDotToDotGeneralVectorVector(%arg0: tensor<3072xf32>, %arg1: tensor<3072xf32>) -> tensor<f32> {
      %0 = "mhlo.dot"(%arg0, %arg1) : (tensor<3072xf32>, tensor<3072xf32>) -> tensor<f32>
      func.return %0 : tensor<f32>
    
    // CHECK:      %[[RES:.*]] = "mhlo.dot_general"(%arg0, %arg1) <{
    // CHECK-SAME:   dot_dimension_numbers = #mhlo.dot<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-collective.mlir

      // CHECK: %[[GROUP_SIZE:.*]] = mhlo.constant dense<2.000000e+00>
      // CHECK: %[[REDUCE:.*]] = "mhlo.all_reduce"
      // CHECK-SAME{LITERAL}: replica_groups = dense<[[0, 1]]> : tensor<1x2xi64>
      // CHECK: mhlo.add
      // CHECK: mhlo.return
      // CHECK: %[[RESULT:.*]] = mhlo.divide %[[REDUCE]], %[[GROUP_SIZE]]
      // CHECK-NEXT: return %[[RESULT]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/order_by_dialect.mlir

      return %14 : tensor<32x10xf32>
    }
    // CHECK: ReadVariableOp
    // CHECK: mhlo.convolution
    // CHECK: mhlo.add
    // CHECK: mhlo.maximum
    // CHECK: mhlo.reshape
    // CHECK: mhlo.dot
    // CHECK: mhlo.add
    // CHECK: mhlo.maximum
    // CHECK: return{{.*}}tensor<32x10xf32>
    
    // -----
    
    // CHECK-LABEL: @mhlo_while
    func.func private @mhlo_while() {
      // CHECK-NEXT: mhlo.constant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/tests/unfuse_mhlo_batch_norm.mlir

      // CHECK-DAG: %[[EPS_BCAST:.+]] = mhlo.constant dense<1.001000e-05> : tensor<256xf32>
      // CHECK-DAG: %[[VARIANCE_EPS:.+]] = mhlo.add %[[VARIANCE]], %[[EPS_BCAST]] : tensor<256xf32>
      // CHECK-DAG: %[[VARIANCE_EPS_RSQRT:.+]] = mhlo.rsqrt %[[VARIANCE_EPS]] : tensor<256xf32>
      // CHECK-DAG: %[[MULTIPLIER:.+]] = mhlo.multiply %[[VARIANCE_EPS_RSQRT]], %[[SCALE]] : tensor<256xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.td

      let summary = "Convert TF Quant ops to MHLO quantizated ops.";
    
      let description = [{
        Convert TF Quant ops to MHLO quant ops.
      }];
    
      let constructor = "mlir::quant::stablehlo::CreateConvertTFQuantOpsToMHLOPass()";
      let dependentDialects = ["TF::TensorFlowDialect", "chlo::ChloDialect",
                               "mhlo::MhloDialect", "tf_type::TFTypeDialect",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc

        return failure();
    
      auto compare_direction =
          is_argmax ? mhlo::ComparisonDirection::GT : mhlo::ComparisonDirection::LT;
      if (is_float) {
        mhlo::OrOp value_or = llvm::dyn_cast_or_null<mhlo::OrOp>(
            value_select.getOperand(0).getDefiningOp());
        if (!value_or) return failure();
    
        mhlo::CompareOp value_gt = llvm::dyn_cast_or_null<mhlo::CompareOp>(
            value_or.getLhs().getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/tests/adjust-layout.mlir

      // CHECK: [[TOKEN:%.*]] = mhlo.create_token : !mhlo.token
      %0 = "mhlo.create_token"() : () -> !mhlo.token
    
      // CHECK:               [[INFEED:%.*]]:3 = "mhlo.infeed"([[TOKEN]]) <{
      // CHECK-SAME{LITERAL}:   infeed_config = "", layout = [[1, 3, 2, 0], [1, 2, 0]]
      // CHECK-SAME:          }> : (!mhlo.token) -> (tensor<1x8x4x4xi32>, tensor<1x100x1xf32>, !mhlo.token)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 817 bytes
    - Viewed (0)
Back to top