Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 84 for legalized (0.16 sec)

  1. 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)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h

    // Create a pass that legalizes MHLO to TF dialect.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeHloToTfPass();
    
    // Creates a pass which replaces a splat constant tensor with a BroadcastInDim
    // op.
    std::unique_ptr<OperationPass<ModuleOp>> CreateUnfoldSplatConstantPass();
    
    // Create a pass that legalizes MHLO to TFLite dialect.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-tfl-stablehlo-constant.mlir

    A. Unique TensorFlower <******@****.***> 1713119208 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 18:33:43 UTC 2024
    - 574 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-skip-partitioned-calls.mlir

    A. Unique TensorFlower <******@****.***> 1712604801 -0700
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 20:05:12 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

    auto* mlir_failed_legalization_op_count =
        tensorflow::monitoring::Counter<1>::New(
            "/tensorflow/core/tf2xla/"
            "mlir_second_phase_failed_legalization_op_count",
            "Counts which op fails to legalize", "op_name");
    
    auto* mlir_non_static_op_count = tensorflow::monitoring::Counter<1>::New(
        "/tensorflow/core/tf2xla/"
        "mlir_second_phase_non_static_op_count",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.h

    #include "tensorflow/core/tpu/kernels/tpu_compile.pb.h"
    #include "tensorflow/core/tpu/kernels/tpu_compile_op_support.h"
    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace v2 {
    
    // Legalizes the given mlir::Module into XLA HLO. If successful, returns the
    // compiled XLA HLO. V1 of the tf2xla uses MLIR whereas V0 does not use MLIR.
    //
    // Inputs:
    //  computation - The MLIR module op. It currently takes in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 07:32:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo.h

    #include "xla/client/compile_only_client.h"
    #include "tensorflow/core/tpu/kernels/tpu_compile_op_support.h"
    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    // Legalize the given MLIR module to XLA HLO using a combination of the MLIR
    // Bridge and XlaBuilder
    absl::StatusOr<XlaCompilationResult> LegalizeTfToHlo(
        const tpu::MlirToHloArgs& computation,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top