- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 254 for mhlo (0.58 sec)
-
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) -
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) -
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) -
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) -
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) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc
} Value new_const_op = rewriter.create<mhlo::ConstantOp>(bcast_op.getLoc(), result); rewriter.replaceOp(bcast_op, {new_const_op}); return success(); } }; using FoldBroadcastInDimBeforeMulOp = FoldBroadcastInDimBeforeBinaryElementwiseOp<mhlo::MulOp>; // Constant folds mhlo.mul, this folder doesn't have an upper limit on how many // elements can be folded.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/unfuse_mhlo_batch_norm.cc
#include "mlir/Transforms/GreedyPatternRewriteDriver.h" // from @llvm-project #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.h" #include "xla/mlir_hlo/mhlo/transforms/rewriters.h" //===----------------------------------------------------------------------===// // The unfuse-mhlo-batch-norm Pass. //===----------------------------------------------------------------------===// namespace mlir::quant::stablehlo {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 12 06:28:12 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc
ConversionTarget target(context); target.addLegalDialect<TFL::TensorFlowLiteDialect, mhlo::MhloDialect>(); target.addLegalOp<func::CallOp, func::ConstantOp, arith::ConstantOp>(); target.addDynamicallyLegalOp<mhlo::CustomCallOp>(IsCustomCallLegal); target.addDynamicallyLegalOp<mhlo::ReduceOp>(IsReduceOpLegal); // Converted MHLO ops should be marked illegal here. // TODO: b/304003568 - Add TF_TransposeOp folding logic to tflite.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
if (lower_to_xla_hlo) { // This pass operates on MHLO control flow ops so it should be legalized // after the control flow ops are legalized. pm.addPass(mlir::mhlo::CreateLegalizeTFCommunicationPass()); // Everything should be MHLO after this. if (!allow_partial_conversion) { pm.addNestedPass<mlir::func::FuncOp>( mlir::mhlo::CreateVerifyTFXLALegalizationPass(legalize_chlo)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/passes.td
]; let dependentDialects = [ "mlir::stablehlo::StablehloDialect", "mlir::TF::TensorFlowDialect", "mlir::func::FuncDialect", "mlir::mhlo::MhloDialect", "mlir::quant::QuantizationDialect", "mlir::chlo::ChloDialect", "mlir::vhlo::VhloDialect", "mlir::shape::ShapeDialect", "mlir::quantfork::QuantizationForkDialect", ]; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 23:21:42 UTC 2024 - 4.3K bytes - Viewed (0)