Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for MetaGraphDef (1.7 sec)

  1. tensorflow/cc/saved_model/reader.h

    // Finds and returns the MetaGraphDef (within the provided SavedModel) that
    // matches the given set of tags. The lifetime of the returned MetaGraphDef is
    // the same as the lifetime of `saved_model_proto`.
    //
    // FindMetaGraphDef returns a failure status when no MetaGraphDef matches the
    // provided tags.
    absl::StatusOr<MetaGraphDef*> FindMetaGraphDef(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 00:19:29 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/loader.h

        return meta_graph_def.signature_def();
      }
    
      std::unique_ptr<Session> session;
      MetaGraphDef meta_graph_def;
      std::unique_ptr<GraphDebugInfo> debug_info;
    };
    
    // A version of SavedModelBundle that avoids storing a potentially large
    // MetaGraphDef. Prefer to use SavedModelBundleLite in new code.
    class SavedModelBundleLite : public SavedModelBundleInterface {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/import_model.h

     public:
      SavedModelMLIRImportInput(const MetaGraphDef* meta_graph_def,
                                const GraphDebugInfo& debug_info)
          : meta_graph_def_(meta_graph_def), debug_info_(debug_info) {
        DCHECK(meta_graph_def);
      }
    
      virtual ~SavedModelMLIRImportInput();
    
      // The original MetaGraphDef of the savedmodel.
      const MetaGraphDef& meta_graph_def() const { return *meta_graph_def_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/loader_util.cc

    // in the SignatureDef (v2) or a collection (v1). If an init_op collection
    // exists, then the collection must contain exactly one op.
    Status GetInitOp(const string& export_dir, const MetaGraphDef& meta_graph_def,
                     string* init_op_name) {
      const auto& sig_def_map = meta_graph_def.signature_def();
      const auto& init_op_sig_it =
          meta_graph_def.signature_def().find(kSavedModelInitOpSignatureKey);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 10 10:25:28 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h

      // exported model is produced. It is used to copy the asset files to
      // `dst_saved_model_path`. `tags` will be attached to the saved
      // `MetaGraphDef`. `signature_def_map` will be passed to the
      // `add_meta_graph_and_variables` function, which is internally used to add a
      // `MetaGraphDef` to save to the SavedModel.
      //
      // Returns `true` if successful. Returns `std::nullopt` otherwise.
      //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/reader.cc

    #define IS_OSS true
    
    namespace tensorflow {
    
    absl::StatusOr<MetaGraphDef*> FindMetaGraphDef(
        const std::unordered_set<string>& tags, SavedModel* saved_model_proto) {
      LOG(INFO) << "Reading meta graph with tags { " << absl::StrJoin(tags, " ")
                << " }";
      for (MetaGraphDef& graph_def : *saved_model_proto->mutable_meta_graphs()) {
        // Get tags from the graph_def.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 00:19:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.h

    // Loads a SavedModel at `saved_model_path` and converts it to `mlir::ModuleOp`.
    //
    // `tags` identify the `tensorflow::MetaGraphDef` to load from the SavedModel.
    // Similarly, `signature_keys` identify the functions (`SignatureDef`s) to load
    // within the `MetaGraphDef`. `ctx` is the `MLIRContext`, which should outlive
    // the returned `ModuleOp`, thus marked with the lifetime bound attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top