Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for saved_model_tags_ (0.42 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      subgraph_index = 0;
      // Build SignatureDefs for the tf.entry_function based func ops.
      for (auto fn : entry_functions) {
        auto signature_defs = BuildSignaturedef(
            fn, saved_model_tags_.empty() ? "" : *saved_model_tags_.begin(),
            subgraph_index, name_mapper_);
        for (const auto& signature_def : signature_defs) {
          signature_defs_vec.push_back(signature_def);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

      }
    
      // Write MLIR Stablehlo dialect into FlatBuffer
      OpOrArgLocNameMapper op_or_arg_name_mapper;
      tflite::FlatbufferExportOptions options;
      options.toco_flags = toco_flags;
      options.saved_model_tags = saved_model_tags;
      options.op_or_arg_name_mapper = &op_or_arg_name_mapper;
      options.metadata[tflite::kModelUseStablehloTensorKey] = "true";
      if (!tflite::MlirToFlatBufferTranslateFunction(module, options, result,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.h

    // because quantization requires exporting the intermediate `ModuleOp` back to
    // SavedModel for calibration. Similarly, `saved_model_dir` is required to
    // access the assets of the original model. `saved_model_tags` uniquely
    // identifies the `MetaGraphDef`. `quantization_config` determines the behavior
    // of StableHLO Quantizer. `quantization_py_function_lib` contains python
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 02:44:03 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization_test.cc

      ASSERT_THAT(tmp_saved_model_dir, IsOk());
    
      QuantizationConfig config;
      const absl::StatusOr<mlir::ModuleOp> quantized_module_op = RunQuantization(
          /*saved_model_bundle=*/nullptr, *tmp_saved_model_dir,
          /*saved_model_tags=*/{}, config,
          /*quantization_py_function_lib=*/nullptr, /*module_op=*/{});
      EXPECT_THAT(
          quantized_module_op,
          StatusIs(absl::StatusCode::kInvalidArgument,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc

      TF_RETURN_IF_ERROR(internal::RegisterAllCustomOps(toco_flags));
    
      auto& saved_model_tags = model_flags.saved_model_tags();
      auto& saved_model_exported_names = model_flags.saved_model_exported_names();
      std::unordered_set<std::string> tags(saved_model_tags.begin(),
                                           saved_model_tags.end());
      auto exported_names_in_vector = std::vector<std::string>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

    }
    
    }  // namespace
    
    absl::StatusOr<mlir::ModuleOp> RunQuantization(
        const SavedModelBundle* saved_model_bundle,
        const absl::string_view saved_model_dir,
        const std::unordered_set<std::string>& saved_model_tags,
        const QuantizationConfig& quantization_config,
        const PyFunctionLibrary* quantization_py_function_lib,
        mlir::ModuleOp module_op) {
      if (saved_model_bundle == nullptr) {
        return absl::InvalidArgumentError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.h

        const toco::ModelFlags& model_flags, toco::TocoFlags& toco_flags,
        mlir::OwningOpRef<mlir::ModuleOp> module,
        const mlir::TFL::PassConfig& pass_config,
        const std::unordered_set<std::string>& saved_model_tags, string* result,
        SavedModelBundle* saved_model_bundle,
        const quantization::PyFunctionLibrary* quantization_py_function_lib);
    
    // Give a warning for any unused flags that have been specified.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_export.h

      // std::set<> select_user_tf_ops -> toco_flags.select_user_tf_ops()
      toco::TocoFlags toco_flags;
      // When exporting from SavedModel, this will have the requested tags.
      std::unordered_set<std::string> saved_model_tags;
      // Metadata key/value pairs to write to the flatbuffer.
      std::map<std::string, std::string> metadata;
      // OpOrArgNameMapper to convert location of the op to name in flatbuffer.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 09 02:51:43 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf_mlir_translate_main.cc

                       "representation without any graph transformation"),
        llvm::cl::value_desc("dir"));
    
    // NOLINTNEXTLINE
    static llvm::cl::opt<std::string> saved_model_tags(
        "tf-savedmodel-tags",
        llvm::cl::desc("Tags used to indicate which MetaGraphDef to import, "
                       "separated by ','"),
        llvm::cl::init("serve"));
    
    // NOLINTNEXTLINE
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/python/graphdef_to_tfl_flatbuffer.cc

      // quantization_py_function_lib is set to nullptr.
      return internal::ConvertMLIRToTFLiteFlatBuffer(
          model_flags, toco_flags, std::move(module), pass_config,
          /*saved_model_tags=*/{}, result, /*saved_model_bundle=*/nullptr,
          /*quantization_py_function_lib=*/nullptr);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top