- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for legalization (0.2 sec)
-
tensorflow/compiler/mlir/tf2xla/tests/verify-tfxla-legalization.mlir
// RUN: tf-opt "-tfxla-verify-legalization=legalize-chlo=true" -verify-diagnostics -split-input-file %s | FileCheck -dump-input=fail %s // Tests the VerifyTFXLALegalization Pass, that just ensures we don't have // any illegal ops at the end of the pipeline. // CHECK-LABEL: allowsMHLO func.func @allowsMHLO() -> (tensor<8x64x32x4xcomplex<f32>> {mhlo.sharding = ""}) { %0 = mhlo.constant dense<(1.000000e+00,-1.000000e+00)> : tensor<128x32x4xcomplex<f32>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/verify-quant-legalization.mlir
// RUN: stablehlo-quant-opt %s -verify-quant-legalization -split-input-file -verify-diagnostics | FileCheck %s // CHECK-LABEL: func @legal_i8 func.func @legal_i8(%arg0: tensor<1xi8>) -> tensor<1xi8> { func.return %arg0: tensor<1xi8> } // ----- func.func @illegal_qint8(%arg0: tensor<1x!tf_type.qint8>) -> tensor<1x!tf_type.qint8> { // expected-error@+1 {{'func.return' op is illegal as it is a UQ op or contains uq/qint types}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 18 18:54:14 UTC 2023 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/shape-inference-after-legalization.mlir
Tres Popp <******@****.***> 1648061556 -0700
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 23 18:56:13 UTC 2022 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/verify-tfxla-legalization-no-chlo.mlir
// RUN: tf-opt "-tfxla-verify-legalization=legalize-chlo=false" -verify-diagnostics -split-input-file %s | FileCheck %s --dump-input=fail // Tests the VerifyTFXLALegalization Pass, that just ensures we don't have // any illegal ops at the end of the pipeline. This runs with // legalize-chlo=false since errors can't be mixed with the legalize-chlo=True // version. // CHECK-LABEL: allows_chlo
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 30 22:07:53 UTC 2024 - 694 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/prepare-tf-with-allowing-bf16-and-f16-type-legalization.mlir
// RUN: tf-opt -tfl-prepare-tf=allow-bf16-and-f16-type-legalization=true %s | FileCheck %s module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} { // CHECK-LABEL: conv_2d_bf16 func.func @conv_2d_bf16(%arg0 : tensor<256x32x32x3xbf16>, %arg1 : tensor<3x3x3x16xbf16>) -> tensor<256x8x7x16xbf16> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 26 23:53:32 UTC 2022 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_passes.td
Option<"prefer_tf2xla_", "prefer-tf2xla", "bool", /*default=*/"false", "Prioritize tf2xla fallback legalization over MLIR legalization " "patterns">, ]; let constructor = "mlir::mhlo::createLegalizeTFPass()"; let dependentDialects = [ "arith::ArithDialect", "chlo::ChloDialect", "func::FuncDialect", "mhlo::MhloDialect", "quant::QuantizationDialect", "shape::ShapeDialect",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 17:44:14 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
"legalzation, with a preference toward TF2XLA."; } else if (tf2xla_fallback_device_type) { VLOG(1) << "TF to XLA legalization patterns include all native patterns " "and TF2XLA fallback patterns."; } else { VLOG(1) << "TF to XLA legalization patterns are native patterns only."; } // Set patterns to legalize_lower_patterns to check whether they should use
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/passes.h
/// list. void PopulateLegalizeTfPatterns(MLIRContext* context, RewritePatternSet* patterns); // Populates TF to MHLO legalization for some of the quantization ops. // // TODO(hinsu): Remove this once we combine quantized and non quantized op // legalization in the ODML conversion pipeline. void PopulateLegalizeTfQuantizationPatterns(MLIRContext* context,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h
// - TensorFlow passes // - Legalization passes // - MHLO passes // // device_type: XLA JIT device to use for compilation such as "XLA_CPU_JIT", // "XLA_GPU_JIT" or "XLA_TPU_JIT". // enable_op_fallback: when this is true, prefer tf2xla fallback kernels over // MLIR // native kernels for legalization to HLO. // custom_legalization_passes: passes to run before the default TF legalization // passes for backend-specific ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc
// this happen. // StableHLO -> MHLO legalization. pm.addPass(mhlo::createStablehloLegalizeToHloPass()); AddMhloOptimizationPasses(pm, /*enable_stablehlo_quantizer=*/false); // TODO: b/293149194 - Add `createFoldBroadcastPass` back to // `AddMhloOptimizationPasses` pm.addNestedPass<func::FuncOp>(createFoldBroadcastPass()); // MHLO -> StableHLO legalization. pm.addPass(mhlo::createHloLegalizeToStablehloPass());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 04:34:23 UTC 2024 - 5.8K bytes - Viewed (0)