Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 124 for legalized (0.32 sec)

  1. tensorflow/compiler/mlir/lite/tests/legalize-tf-assert.mlir

    // RUN: tf-opt %s -tfl-legalize-tf='preserve-assert-op=true' | FileCheck %s --dump-input=fail
    
    func.func @preserve_assert(%arg0: tensor<1xi32>, %arg1: tensor<1xi32>) -> tensor<1xi1> {
      %0 = "tf.LessEqual"(%arg0, %arg1) : (tensor<1xi32>, tensor<1xi32>) -> tensor<1xi1>
      "tf.Assert"(%0, %arg1) {summarize = 3} : (tensor<1xi1>, tensor<1xi32>) -> ()
      func.return %0 : tensor<1xi1>
      // CHECK-LABEL: preserve_assert
      // CHECK: tfl.less_equal
      // CHECK: Assert
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 14:24:59 UTC 2022
    - 481 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/tests/stablehlo-custom-call-legalize-composite.mlir

    // RUN: odml-to-stablehlo-opt %s -stablehlo-custom-call-legalize-composite | FileCheck %s
    
    // CHECK-LABEL: module
    module {
      // CHECK-LABEL: @main
      func.func @main(%arg0: tensor<1xf32>, %arg1: tensor<2xf32>) {
        // CHECK: stablehlo.custom_call @foo
        stablehlo.custom_call @foo() : () -> ()
        // CHECK-NOT: stablehlo.custom_call
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 19:49:44 UTC 2024
    - 1009 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/legalize-tf-no-runtime-verification.mlir

    // RUN: tf-opt %s -tfl-prepare-tf -tfl-legalize-tf='run-tfl-runtime-verification=false'  -tfl-optimize | FileCheck %s
    
    func.func @broadcast_to_bf16(%arg0: tensor<3xbf16>, %arg1: tensor<2xi64>) -> tensor<3x3xbf16> {
      %0 = "tf.BroadcastTo"(%arg0, %arg1) : (tensor<3xbf16>, tensor<2xi64>) -> tensor<3x3xbf16>
      func.return %0: tensor<3x3xbf16>
    
    // CHECK-LABEL: broadcast_to_bf16
    // CHECK:  [[CST:%.*]] = arith.constant dense<1.000000e+00> : tensor<3x3xbf16>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 648 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-BatchMatMulV2.mlir

    // RUN: tf-opt -xla-legalize-tf %s | FileCheck %s
    
    //===----------------------------------------------------------------------===//
    // tf.BatchMatMulV2 op legalizations.
    //===----------------------------------------------------------------------===//
    
    func.func @batchmatmulv2_basic(%arg0: tensor<1x4x2xf32>, %arg1: tensor<3x2x4xf32>) -> tensor<3x4x4xf32> {
    // CHECK-LABEL:   func @batchmatmulv2_basic
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/legalize-tensorlist.mlir

    // RUN: tf-opt -tfl-legalize-tensorlist -canonicalize -split-input-file %s | FileCheck %s
    
    // CHECK-LABEL: listReserveScalarShapeI32
    func.func @listReserveScalarShapeI32(%arg0: tensor<i32>, %arg1: tensor<i32>) -> tensor<!tf_type.variant<tensor<*xi32>>> {
      %0 = "tf.TensorListReserve"(%arg0, %arg1) : (tensor<i32>, tensor<i32>) -> tensor<!tf_type.variant<tensor<*xi32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-stablehlo-tfl-composite.mlir

    // RUN: odml-to-stablehlo-opt %s -stablehlo-composite-legalize-tfl-custom | FileCheck %s
    // RUN: tf_tfl_translate --enable-hlo-to-tf-conversion --input-mlir %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s --check-prefix=CHECK-ROUNDTRIP
    
    module {
      func.func public @main(%arg0: tensor<3x3xf32>, %arg1: tensor<3x3xf32>, %arg2: tensor<1x100x32x4xf32>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/legalize-tf-hashtables.mlir

    // RUN: tf-opt %s -split-input-file -tfl-legalize-hashtables-tf --cse | FileCheck %s
    
    // Test for case with string -> int64 hashtable.
    func.func @hashtable_string_to_int64(%arg0: tensor<i64>) -> tensor<*xi64> {
      %cst = arith.constant dense<"f"> : tensor<!tf_type.string>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

            continue;
          if (auto size_op = llvm::dyn_cast<TF::LookupTableSizeV2Op>(user))
            continue;
    
          return false;
        }
      }
      return true;
    }
    
    // Pass which legalizes TF hash tables only when they are covered by the
    // TensorFlow Lite hash table kernels.
    class LegalizeHashTablesPass
        : public impl::LegalizeHashTablesPassBase<LegalizeHashTablesPass> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h

                                             llvm::SmallVector<Value>& outputs);
    
      // Tries to legalize the specified TensorFlow op, if supported.
      //
      // Emits an error and returns failure if an error is encountered during
      // conversion. Note that success return value doesn't mean successful
      // legalization.
      mlir::LogicalResult LegalizeOp();
    
      // Converts the given operand to expression of kind kConstant or kXlaOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td

      ];
    }
    
    def LegalizeHloToTfPass : Pass<"tf-legalize-hlo", "ModuleOp"> {
      let summary = "Legalize from MHLO to the TF dialect";
      let dependentDialects = ["TF::TensorFlowDialect"];
      let constructor = "mlir::odml::CreateLegalizeHloToTfPass()";
    }
    
    def LegalizeHloToTfLitePass : Pass<"tfl-legalize-hlo", "mlir::ModuleOp"> {
      let summary = "Legalize from MHLO to the TFLite dialect";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top