Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 156 for legalized (0.26 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-quant.mlir

    // RUN: tf-opt -convert-tf-quant-types -quant-convert-tf-quant-ops-to-mhlo -canonicalize "-xla-legalize-tf=legalize-chlo=false" -split-input-file %s | FILECHECK_OPTS="" FileCheck %s
    
    
    //===----------------------------------------------------------------------===//
    // tf.UniformQuantizedDotHybrid legalization
    //===----------------------------------------------------------------------===//
    
    // CHECK-LABEL: func @quantized_matmul_fn
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 01:25:29 UTC 2024
    - 37.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

    // RUN: tf-opt %s -tfl-legalize-tf --cse -split-input-file| FileCheck %s --dump-input=fail
    
    func.func @add(%arg0: tensor<1xf32>, %arg1: tensor<1xf32>) -> tensor<1xf32> {
      %0 = "tf.Add"(%arg0, %arg1) : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
      func.return %0: tensor<1xf32>
    
    // CHECK-LABEL: add
    // CHECK:  tfl.add %arg0, %arg1 {fused_activation_function = "NONE"} : tensor<1xf32>
    // CHECK:  return
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/tf2xla/tests/BUILD

        name = "all_tests",
        data = [":test_utilities"],
        driver = "@llvm-project//mlir:run_lit.sh",
        size_override = {
            "legalize-tf-binary-elementwise.mlir": "medium",
            "legalize-tf-include-tf2xla-fallback.mlir": "medium",
            "legalize-tf-prefer-tf2xla.mlir": "medium",
            "legalize-tf.mlir": "medium",
        },
        test_file_exts = [
            "mlir",
            "hlotxt",
        ],
    )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 910 bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

    After serialization, this pass removes the `_entry_function` attribute from
    `tf.XlaCallModule`, and removes all the serialized stablehlo functions
    from the top-level module.
    ### `-tfe-legalize-tfg`
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-communication.mlir

    // RUN: tf-opt -split-input-file -verify-diagnostics -xla-legalize-tf-communication %s | FileCheck %s
    
    // Test legalization of `tf._XlaHostComputeMlir` expands into individual
    // `mhlo.send` per operand and `mhlo.recv` per result. Channel Id's are uniquely
    // assigned per mhlo communcation op, and frontend attributes (modified keys)
    // and op shardings are added. Sink tokens are created
    // if there are more than one operand or more than one result.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 18:24:20 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // -----
    
    // ============================================================================
    // The following functions tests example quantization patterns outputted from
    // StableHLO Quantizer. These patterns should be legalized early directly
    // to fused tflite ops.
    // ============================================================================
    
    // Tests that a simple per-channel quantized `stablehlo.dot_general` is properly
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
Back to top