Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 236 for legalize (0.36 sec)

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

    // tensor to sparse format.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateDenseToSparsePass();
    
    // Creates function pass to legalize TF While to TFL While.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTFWhilePass();
    
    // Legalize tflite flex ops to TF ops.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateLiftTfliteFlexOpsPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 21:29:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/passes.td

      ];
    }
    
    def LegalizeWhilePass : Pass<"tfl-legalize-tf-while", "mlir::ModuleOp"> {
      let summary = "Legalize from TensorFlow While to TensorFlow Lite While.";
      let constructor = "CreateLegalizeTFWhilePass()";
      let dependentDialects = ["TFL::TensorFlowLiteDialect"];
    }
    
    def LegalizeVariablesPass : Pass<"tfl-legalize-variables-tf", "mlir::ModuleOp"> {
      let summary = "Legalize TensorFlow variables to TensorFlow Lite dialect.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/unranked_tensor.mlir

    // RUN: tf-opt --tfl-legalize-tf-while %s -o - | flatbuffer_translate -mlir-to-tflite-flatbuffer - -o -  | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    // CHECK-LABEL: main
    func.func @main(%arg0: tensor<*xf32>) -> tensor<*xf32> {
      // CHECK:     %{{.*}} = tfl.add %{{.*}}, %{{.*}} {fused_activation_function = "NONE"} : tensor<*xf32>
      // CHECK:     return %{{.*}} : tensor<*xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 554 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/BUILD

            "prepare-tf.mlir": "medium",
            "prepare-tf-fake-quant.mlir": "medium",
            "prepare-tf-fake-quant-4bit.mlir": "medium",
            "raise-custom-ops.mlir": "medium",
        },
        tags_override = {
            "legalize-tf.mlir": ["no_rocm"],
            "optimize.mlir": ["no_rocm"],
            "prepare-tf.mlir": ["no_rocm"],
            "const-fold.mlir": ["no_mac_arm64"],
        },
        test_file_exts = ["mlir"],
    )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 15:18:46 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

        pass_manager->addPass(mlir::TF::CreateTFShapeInferencePass());
      }
    
      // Legalize while early to allow further constant folding.
      // TODO(jpienaar): This may not actually matter as we do canonicalization
      // after the legalize below, for now it needs to be below the above passes
      // that work on TF dialect and before inliner so that the function calls in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.td

    def VerifyQuantLegalization : Pass<"verify-quant-legalization", "mlir::func::FuncOp"> {
      let summary = "Verifies that all TF quant ops and types have been legalized.";
    
      let description = [{
        Ensures that all TF quant ops and types have been legalized to HLO
        and reports an error about which op failed to legalize. This pass
        does not transform any ops and is checking.}];
    
      let constructor = "mlir::quant::stablehlo::CreateVerifyQuantLegalizationPass()";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/tests/BUILD

        ],
        licenses = ["notice"],
    )
    
    glob_lit_tests(
        name = "all_tests",
        data = [":test_utilities"],
        driver = "//tensorflow/compiler/mlir/lite/stablehlo:run_lit.sh",
        size_override = {
            "legalize-skip-quantization-ops.mlir": "medium",
        },
        test_file_exts = [
            "mlir",
            "cc",
        ],
    )
    
    # Bundle together all of the test utilities that are used by tests.
    filegroup(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

    namespace mlir {
    namespace TF {
    
    //===----------------------------------------------------------------------===//
    // The pass to legalize the quantization emulation ops from TF.
    //
    namespace {
    
    // Legalize TF quantization emulation ops to that in Quant ops dialect.
    struct LegalizeTFToQuant
        : public PassWrapper<LegalizeTFToQuant, OperationPass<func::FuncOp>> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/legalize_jax_random.mlir

    // RUN: tf-opt -tfl-legalize-random %s | FileCheck %s
    
    
    // CHECK-LABEL:   func @tfl_wrapped_jax_random_normal(
    // CHECK-SAME:                                        %[[RNG:.*]]: tensor<2xui32>) -> tuple<tensor<3x4xf32>> {
    // CHECK:           %[[VAL_0:.*]] = stablehlo.constant dense<[3, 4]> : tensor<2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc

    }
    
    TEST(CompileMlirUtil, HasLegalizationPass) {
      OpPassManager pass_manager;
      llvm::StringRef device_type = "XLA_CPU_JIT";
      absl::string_view kLegalizeTfPass = "xla-legalize-tf";
    
      CreateConvertMlirToXlaHloPipeline(pass_manager, device_type,
                                        /*enable_op_fallback=*/true,
                                        /*custom_legalization_passes*/ {});
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top