Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 247 for legalize (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/errors.mlir

    // RUN: tf-tfrt-opt -tf-to-tfrt %s -split-input-file -verify-diagnostics
    
    // expected-error @+1 {{failed to legalize operation 'func.func' that was explicitly marked illegal}}
    func.func @test_identity_wrong_type(%arg0: tensor<4x2x!tf_type.string>) -> tensor<4x2x!tf_type.stringref> {
      %0 = "tf.SomeOp"(%arg0) : (tensor<4x2x!tf_type.string>) -> tensor<4x2x!tf_type.stringref>
      func.return %0 : tensor<4x2x!tf_type.stringref>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 10:51:48 UTC 2022
    - 428 bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/lite/quantization/tensorflow/passes.h

    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/Pass/Pass.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    // Legalize the tf ops to the quant ops, so the quantization passes can work.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateLegalizeTFToQuantPass();
    
    // Fallbacks ops that are not supported by TF Quantization to TFLite Flex ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 08 00:46:29 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/unranked_function_output.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
    
    // This test is to test for unranked function output from input, the output type should be compatible with input type.
    
    // CHECK: func @main(%arg0: tensor<1xf32>) -> tensor<*xf32> attributes {tf.entry_function = {inputs = "arg0", outputs = "tfl.while"}} {
    // CHECK:   %0 = "tfl.while"(%arg0) ({
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 11 07:12:22 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  10. 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)
Back to top