Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for MetaGraphDef (0.17 sec)

  1. tensorflow/cc/saved_model/loader.cc

    // An empty init_op_name indicates that there are no init ops to run.
    Status RunInitOp(const RunOptions& run_options, const string& export_dir,
                     const MetaGraphDef& meta_graph_def,
                     const std::vector<AssetFileDef>& asset_file_defs,
                     Session* session, const string& init_op_name) {
      if (!init_op_name.empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/bundle_v2.cc

      metrics::SavedModelReadPath().Set(export_dir);
    
      // Load MetaGraphDef.
      // In version 2 SavedModels, there is only one MetaGraphDef.
      if (saved_model_proto.meta_graphs_size() != 1) {
        return absl::Status(
            absl::StatusCode::kInvalidArgument,
            strings::StrCat(
                "SavedModelV2 should have exactly one MetaGraphDef but actually ",
                "contains ", saved_model_proto.meta_graphs_size()));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

      the representative dataset for the actual data provided for inference.
    
      Args:
        model_dir: Path to SavedModel directory.
        tags: Collection of tags identifying the MetaGraphDef within the SavedModel.
        representative_dataset_map: A map where signature keys are mapped to
          corresponding representative datasets.
    
      Raises:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/util.h

    namespace tensorflow {
    namespace saved_model {
    
    // Utility functions for SavedModel reading and writing.
    
    // Returns "WriteVersion" ("1" or "2") of the SavedModel protobuf. If the
    // protobuf has exactly one MetaGraphDef, which contains a SavedObjectGraph, it
    // is version 2. Else, the protobuf is version 1.
    //
    // NOTE: The "WriteVersion" does *not* equal the major version of TF.
    std::string GetWriteVersion(const SavedModel& saved_model);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 31 23:00:51 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.h

    // 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
    // implementations of certain APIs that are required for calibration.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 02:44:03 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.h

    #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_TRANSLATE_UPGRADE_GRAPH_H_
    
    #include "tensorflow/core/framework/function.h"
    #include "tensorflow/core/graph/graph.h"
    
    namespace tensorflow {
    
    class GraphDef;
    class MetaGraphDef;
    
    // Generate the shared_name for resource handle ops in the graph and functions
    // if their shared_names are empty. Resource handle ops with empty shared_name
    // may have undesired semantics.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 09:24:48 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/python/mlir.h

    // without any MLIR graph transformation.
    //
    // Args:
    //   saved_model_path: File path from which to load the SavedModel.
    //   tags: Tags to identify MetaGraphDef that need to be loaded.
    //   upgrade_legacy: Boolean flag that indicates whether to upgrade legacy
    //                   graphs
    //
    // Returns:
    //   A string of textual MLIR representing the raw imported SavedModel.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 23:44:01 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/saved_model_utils.h

    // Walks through the SavedObjectGraph in metagraph, and restores all nodes
    // (except "UserDefinedObjects") with their corresponding type in
    // "PartiallyRevivedObjects".
    Status PartiallyReviveSavedModelObjects(const MetaGraphDef& metagraph,
                                            ImmediateExecutionContext* context,
                                            const std::string& directory,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 04:18:52 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  9. tensorflow/cc/saved_model/util_test.cc

    #include "tsl/platform/status_matchers.h"
    
    namespace tensorflow {
    namespace saved_model {
    namespace {
    
    using tsl::testing::StatusIs;
    
    TEST(UtilTest, TestGetWriteVersionV2) {
      SavedModel saved_model_proto;
      MetaGraphDef* meta_graphdef = saved_model_proto.add_meta_graphs();
      auto* object_graph_def = meta_graphdef->mutable_object_graph_def();
      object_graph_def->add_nodes();
      EXPECT_EQ(GetWriteVersion(saved_model_proto), "2");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h

      // Function alias mapping for pre-calibrated SavedModel. Used to preserve
      // aliased functions.
      absl::flat_hash_map<FunctionName, FunctionAlias> function_aliases_;
    
      // Tags to identify the MetaGraphDef to load from a SavedModel.
      const std::unordered_set<std::string> tags_;
    
      const absl::flat_hash_map<std::string, tensorflow::SignatureDef>
          signature_def_map_;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top