Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for SavedModelBundle (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.cc

    #include "tsl/platform/errors.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir::quant::stablehlo {
    
    using ::stablehlo::quantization::QuantizationConfig;
    using ::tensorflow::MLIRImportOptions;
    using ::tensorflow::SavedModelBundle;
    using ::tensorflow::SavedModelSignatureDefsToMlirImport;
    using ::tensorflow::quantization::PreprocessAndFreezeGraph;
    
    absl::StatusOr<ImportedMlirModuleOp> SavedModelToMlirModuleOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/cc/tools/freeze_saved_model.cc

        }
      } else {
        tensor_names->insert(tensor_info.name());
      }
    }
    
    // Gets the union of all inputs and outputs of all SignatureDefs in the bundle
    void GetSignatureDefsInputsAndOutputs(
        const SavedModelBundle& saved_model_bundle,
        std::unordered_set<string>* inputs, std::unordered_set<string>* outputs) {
      for (auto& sigdef_elem : saved_model_bundle.meta_graph_def.signature_def()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.h

    // XlaCallModuleOp. Returns a non-OK status if quantization fails, or any of
    // `saved_model_bundle` or `quantization_py_function_lib` is a nullptr.
    absl::StatusOr<mlir::ModuleOp> RunQuantization(
        const SavedModelBundle* saved_model_bundle,
        absl::string_view saved_model_dir,
        const std::unordered_set<std::string>& saved_model_tags,
        const stablehlo::quantization::QuantizationConfig& quantization_config,
    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/cc/saved_model/loader.cc

                          const RunOptions& run_options, const string& export_dir,
                          const std::unordered_set<string>& tags,
                          SavedModelBundle* const bundle) {
      return LoadSavedModelGeneric<SavedModelBundle>(session_options, run_options,
                                                     export_dir, tags, bundle);
    }
    
    Status RestoreSession(const RunOptions& run_options,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.h

        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.
    void WarningUnusedFlags(const toco::ModelFlags& model_flags,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/python/mlir.cc

        bool include_variables_in_initializers, bool upgrade_legacy,
        bool show_debug_info, TF_Status* status) {
      // Load the saved model into a SavedModelBundle.
    
      std::unordered_set<string> tag_set =
          absl::StrSplit(tags, ',', absl::SkipEmpty());
    
      tensorflow::SavedModelBundle bundle;
      auto load_status =
          tensorflow::LoadSavedModel({}, {}, saved_model_path, tag_set, &bundle);
      if (!load_status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

    namespace odml {
    
    absl::StatusOr<OwningOpRef<mlir::ModuleOp>> ImportSavedModelOrMLIR(
        const std::string& input_path, MLIRContext* context,
        llvm::SourceMgr* source_mgr,
        std::unique_ptr<tensorflow::SavedModelBundle>* saved_model_bundle) {
      if (absl::EndsWith(input_path, ".mlir")) {
        auto file_or_err = llvm::MemoryBuffer::getFileOrSTDIN(input_path.c_str());
        if (std::error_code error = file_or_err.getError()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/experimental/public/signature_def_function.h

    // and represents a computation defined by a TF subgraph.
    // These Signatures were primarily designed to be interoperable with the legacy
    // TF 1 Session-based C++ SavedModelBundle loading APIs:
    // https://github.com/tensorflow/tensorflow/blob/26c4ee0c833e74f94d0102d8b005c41a28b44445/tensorflow/cc/saved_model/loader.h#L96-L108
    // SignatureDefFunctions have different semantics from regular TF2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 17 23:03:48 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo.cc

    #include "tensorflow/core/public/session.h"
    #include "tsl/platform/errors.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace {
    
    // Extract the mlir TF module and optionally a ::tensorflow::SavedModelBundle
    // from a saved model or from an mlir file.
    absl::StatusOr<quant::stablehlo::ImportedMlirModuleOp> ImportSavedModelOrTfMlir(
        absl::string_view input_path, MLIRContext* context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

        const absl::string_view saved_model_dir,
        const std::unordered_set<std::string>& saved_model_tags,
        QuantizationConfig* quantization_config,
        const PyFunctionLibrary* quantization_py_function_lib,
        const SavedModelBundle* saved_model_bundle, mlir::PassManager& pass_manager,
        mlir::StatusScopedDiagnosticHandler& status_handler, ModuleOp& module) {
      // TODO: b/194747383 - We need to valid that indeed the "main" func is
      // presented.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top