Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 173 for mhlo (1.02 sec)

  1. 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)
  2. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/unfuse_mhlo_batch_norm.mlir

      // CHECK: %[[X_CENTER:.+]] = mhlo.subtract %[[X]], %[[MEAN_BCAST]] : tensor<4x256xf32>
      // CHECK: %[[X_SCALED:.+]] = mhlo.multiply %[[X_CENTER]], %[[SCALE_BCAST]] : tensor<4x256xf32>
      // CHECK: %[[X_NORMED:.+]] = mhlo.divide %[[X_SCALED]], %[[STDDEV_BCAST]] : tensor<4x256xf32>
      // CHECK: %[[RESULT:.+]] = mhlo.add %[[X_NORMED]], %[[OFFSET_BCAST]] : tensor<4x256xf32>
      %0 = "mhlo.batch_norm_inference"(%x, %scale, %offset, %mean, %variance)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/convert_tf_quant_ops_to_mhlo.mlir

      // CHECK-DAG: %[[LHS_1:.*]] = mhlo.convert %arg0 : tensor<3x2xi32>
      // CHECK-DAG: %[[LHS_2:.*]] = mhlo.bitcast_convert %[[LHS_1]] : (tensor<3x2xi32>) -> tensor<3x2x!quant.uniform<i32:f32, 2.000000e+00:4>>
      // CHECK-DAG: %[[RHS_1:.*]] = mhlo.convert %arg1 : tensor<2xi32>
      // CHECK-DAG: %[[RHS_2:.*]] = mhlo.bitcast_convert %[[RHS_1]] : (tensor<2xi32>) -> tensor<2x!quant.uniform<i32:f32, 2.000000e+00:4>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.h

    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"  // IWYU pragma: keep
    
    namespace mlir {
    namespace odml {
    
    // Given a Composite op that wraps a core.aten.avg_pool2d, returns the padding
    // configuration required for the `tfl.pad` if the padding part of the op is
    // to be done before average pooling.
    DenseIntElementsAttr GetPadOpAttr(Builder& builder, mhlo::CompositeOp op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/tools/stablehlo_quant_opt.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h"
    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    #include "xla/mlir_hlo/mhlo/IR/register.h"
    #include "xla/mlir_hlo/mhlo/transforms/passes.h"
    #include "tensorflow/core/ir/types/dialect.h"
    
    int main(int argc, char** argv) {
      tensorflow::InitMlir y(&argc, &argv);
    
      mlir::registerAllPasses();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 07:37:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.cc

      // of dynamic shapes. Therefore we lower chlo ops after optimization.
      pm.addNestedPass<func::FuncOp>(CreateOptimizeIntGraphPass());
      pm.addNestedPass<func::FuncOp>(mhlo::createChloLegalizeToHloPass());
      pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());
      pm.addPass(createSymbolDCEPass());
      // MHLO -> StableHLO legalization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf_mlir_opt_main.cc

      mlir::tf_saved_model::registerTensorFlowSavedModelPasses();
      mlir::TFL::registerTensorFlowLitePasses();
      mlir::mhlo::registerAllMhloPasses();
    
      // These are in compiler/mlir/tf2xla and not part of the above MHLO passes.
      mlir::mhlo::registerLegalizeTfPasses();
      mlir::mhlo::registerTfXlaPasses();
      mlir::quant::stablehlo::registerBridgePasses();
      tensorflow::tf2xla::internal::registerTFXLABridgeClusteringPasses();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfold_splat_constant_pass.cc

    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace odml {
    namespace {
    
    #define DEBUG_TYPE "unfold-splat-constant-pass"
    
    #define GEN_PASS_DEF_UNFOLDSPLATCONSTANTPASS
    #include "tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h.inc"
    
    // Undo the MHLO::BroadcastInDimOp folding pattern on splat tensor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

      // on StableHLO, treating StableHLO purely as an input format, and do all
      // optimizations via MHLO passes that can be shared with the OpenXLA compiler.
      // Therefore, this function inserts a StableHLO <=> MHLO roundtrip to make
      // this happen.
    
      // StableHLO -> MHLO legalization.
      pm.addPass(mhlo::createStablehloLegalizeToHloPass());
    
      AddMhloOptimizationPasses(pm, /*enable_stablehlo_quantizer=*/false);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td

    }
    
    def LegalizeStablehloToVhloPass : Pass<"stablehlo-legalize-vhlo", "ModuleOp"> {
      let summary = "Legalize StableHLO to VHLO for ODML.";
      let dependentDialects = ["mlir::vhlo::VhloDialect"];
    }
    
    def LegalizeVhloToStablehloPass : Pass<"vhlo-legalize-stablehlo", "ModuleOp"> {
      let summary = "Legalize VHLO to StableHLO for ODML.";
      let dependentDialects = ["mlir::stablehlo::StablehloDialect"];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top