Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 80 for HLO (0.04 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/lowering_passes.td

      let description = [{
        Gathers metrics about the input MLIR to Phase 2 of the TFXLA Bridge, which
        does a strict semantic lowering from Tensorflow ops to XLA HLO.
      }];
    
      let constructor = "tensorflow::tf2xla::internal::CreateInputLoweringMetricsPass()";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 19:49:04 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/common/tfl_pass_config.h

      // Whether to enable the hlo/stablehlo to tf conversion. This also supports
      // the case where a saved model contains both TF module and serialized
      // StableHLO module.
      bool enable_hlo_to_tf_conversion = false;
      // Whether to disable the direct hlo/stablehlo to Tensorflow Lite conversion.
      //
      // This prevents from directly converting from HLO to TFLite without going
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.cc

        std::vector<ShardingAndIndex>* arg_core_mapping,
        std::vector<std::vector<xla::Shape>>* per_core_arg_shapes) {
      LOG_FIRST_N(INFO, 1)
          << "Compiling MLIR computation to XLA HLO using MLIR tf2xla bridge in "
             "the op by op fallback mode. This is Phase 2 of the TF2XLA Bridge. "
             "Old (non-MLIR) bridge may be used in case of unsupported feature "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h

                     const std::string& device_type);
    
      ~Tf2XlaRewriter();
    
      // Compiles the given Operation with XlaBuilder and imports the generated HLO
      // via the HLO -> MHLO importer.
      absl::StatusOr<mhlo::TupleOp> CompileWithHloImporter(
          tensorflow::OpKernelContext& op_context);
    
      // Import the given XlaComputation into the parent module. Returns the given
    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/tf2xla/transforms/xla_legalize_tf.cc

      if (tf2xla_fallback_device_type) {
        // Add TF->HLO legalization patterns via TF2XLA fallback.
        PopulateLegalizeTfWithTf2XlaPatterns(tf2xla_fallback_device_type.value(),
                                             patterns, context, converter,
                                             prefer_tf2xla);
      }
    
      // Populate with CHLO->HLO lowerings to account for TF ops legalized to
      // CHLO first.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/convert_mhlo_quant_to_int.mlir

    // RUN: tf-mlir-translate -mlir-tf-to-hlo-text %s -tf-input-shapes=: -tf-xla-emit-return-tuple | FileCheck %s
    
    module attributes {tf.versions = {producer = 179 : i32}} {
      func.func @main(%arg0: tensor<f32>) -> tensor<f32> {
        %0 = "stablehlo.uniform_quantize"(%arg0) : (tensor<f32>) -> tensor<!quant.uniform<ui8:f32, 34.0:16>>
        %1 = "stablehlo.uniform_dequantize"(%0) : (tensor<!quant.uniform<ui8:f32, 34.0:16>>) -> tensor<f32>
        func.return %1 : tensor<f32>
      }
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 07 16:28:50 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/BUILD

    # Groups the implementations of the HLO to TF operation conversions.
    load("//tensorflow/core/platform:rules_cc.bzl", "cc_library")
    
    package(
        # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
        default_visibility = [
            "//visibility:public",
        ],
        licenses = ["notice"],
    )
    
    cc_library(
        name = "util",
        srcs = [
            "util.cc",
        ],
        hdrs = [
            "util.h",
        ],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/mlprogram_util.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/mlprogram.h"
    
    namespace tensorflow {
    
    void RegisterMlProgramPasses() {
      mlir::registerPassPipeline(
          "tf-lower-to-mlprogram-and-hlo", "Lower TF to ml_program + mhlo",
          [](mlir::OpPassManager& pm, llvm::StringRef options,
             llvm::function_ref<mlir::LogicalResult(const llvm::Twine&)>
                 errorHandler) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 22:13:50 UTC 2024
    - 1.6K 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/tflite_legalize_hlo_patterns.td

    limitations under the License.
    ==============================================================================*/
    
    // This is the legalization pattern definition file for HLO to TFL.
    
    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mhlo/IR/hlo_ops.td"
    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    
    def CreateTFLCastToInt32Op : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 18 18:07:41 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top