Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 124 for legalized (0.17 sec)

  1. 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)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/IterationOrderRetainingSetElementSourceTest.groovy

            source.contains("foo")
        }
    
        def "an element added as both a provider and a realized value is not duplicated"() {
            when:
            source.add("foo")
            source.addPending(provider("foo"))
    
            then:
            source.iterator().collect() == ["foo"]
        }
    
        def "an element added as both a provider and a realized value has the correct order"() {
            when:
            source.addPending(provider("foo"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 06:43:26 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

      }
    
      if (failed(mlir::tf_saved_model::FreezeVariables(
              module_op, saved_model_bundle->GetSession()))) {
        return absl::InternalError("Failed to freeze variables.");
      }
    
      // Run legalize TF to StableHLO pass to convert `tf.Const` and
      // `tf.Const`->`tf.Cast` patterns after variable freezing. The TF shape
      // inference pass is also required to resolve unknown shapes in the TF dialect
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

        registry.insert<shape::ShapeDialect>();
      }
    
     public:
      StringRef getArgument() const final { return "tf-mhlo"; }
      StringRef getDescription() const final {
        return "This pass will legalize TF Ops to MHLO Ops.";
      }
    
     protected:
      Option<bool> skip_quantization_ops_{
          *this, "skip-quantization-ops",
          ::llvm::cl::desc("Skip quantization ops")};
    
      Option<bool> skip_resize_{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/tests/tfl_legalize_hlo_custom_call.mlir

    // RUN: odml-to-stablehlo-opt %s -tfl-legalize-hlo -split-input-file | FileCheck %s --dump-input=fail
    
    // CHECK-LABEL: mhlo_custom_call_test__legalize_string_backend_config
    func.func @mhlo_custom_call_test__legalize_string_backend_config(%arg0: tensor<1x4xf32>) -> tensor<1x8xf32> {
      %0 = mhlo.custom_call @custom_call.my_custom_op(%arg0) {
        api_version = 1 : i32,
        backend_config = "this_is_a_test_string"
      } : (tensor<1x4xf32>) -> (tensor<1x8xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

              for (auto arg : block.getArguments()) {
                ConvertAndWrapUsesInUnrealizedCast(arg, converter, rewriter);
              }
            }
          }
        });
      });
      return success();
    }
    
    // Legalize StableHLO portion of program to VHLO, leaves TFL untouched
    LogicalResult ApplyStablehloToVhloPatterns(ModuleOp module,
                                               bool is_func_legal) {
      MLIRContext *context = module.getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top