Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 209 for mhlo (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

    #include "tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace odml {
    
    // Convert mhlo.dot to mhlo.dot_general.
    LogicalResult ConvertDotToDotGeneral(mhlo::DotOp op,
                                         PatternRewriter &rewriter) {
      auto lhs_type = mlir::cast<ShapedType>(op.getLhs().getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

      // StableHLO -> MHLO legalization for MHLO optimization.
      pm.addPass(mlir::mhlo::createStablehloLegalizeToHloPass());
      // Rewrites legacy StableHLO ops.
      AddUnfuseMhloOpsPasses(pm);
      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
      // MHLO -> StableHLO legalization.
      pm.addPass(mlir::mhlo::createHloLegalizeToStablehloPass());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/verify_quant_legalization.cc

    // The TF dialect uses some TF types that are illegal in the MHLO dialect and
    // some generic types that are legal in MHLO. This pass legalizes TF types into
    // types that are legal in MHLO. For example, TF::Qint8Type is converted to i8.
    // Rewrites here should run before TF to MHLO op legalizations are run.
    
    #include <memory>
    
    #include "absl/log/log.h"
    #include "llvm/ADT/STLExtras.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

    #include "tensorflow/compiler/tf2xla/xla_op_registry.h"
    #include "xla/client/xla_builder.h"
    #include "xla/client/xla_computation.h"
    #include "xla/hlo/ir/hlo_instruction.h"
    #include "xla/hlo/ir/hlo_opcode.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    #include "xla/service/hlo.pb.h"
    #include "xla/translate/hlo_to_mhlo/hlo_function_importer.h"
    #include "xla/translate/hlo_to_mhlo/hlo_to_mlir_hlo.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace mhlo {
    
    ConversionTarget GetDefaultLegalConversionTargets(MLIRContext& mlir_context,
                                                      bool legalize_chlo) {
      ConversionTarget target(mlir_context);
    
      if (legalize_chlo) {
        target.addIllegalDialect<chlo::ChloDialect>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 17:44:14 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top