Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for MetaGraphDef (0.17 sec)

  1. tensorflow/cc/saved_model/bundle_v2.h

      /// export directory.
      static Status Load(const std::string& export_dir, SavedModelV2Bundle* bundle);
    
      /// MetaGraphDef from the loaded SavedModel.
      MetaGraphDef& meta_graph_def() { return meta_graph_def_; }
    
      /// SavedObjectGraph from the MetaGraphDef.
      const SavedObjectGraph& saved_object_graph() {
        return meta_graph_def().object_graph_def();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 20 03:32:59 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/cc/saved_model/reader_test.cc

      }
    };
    
    TEST_F(ReaderTest, TagMatch) {
      MetaGraphDef meta_graph_def;
    
      const string export_dir = GetDataDependencyFilepath(TestDataSharded());
      TF_ASSERT_OK(ReadMetaGraphDefFromSavedModel(export_dir, {kSavedModelTagServe},
                                                  &meta_graph_def));
      CheckMetaGraphDef(meta_graph_def);
    }
    
    TEST_F(ReaderTest, NoTagMatch) {
      MetaGraphDef meta_graph_def;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 17 21:17:08 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. tensorflow/cc/saved_model/loader_util.h

    // exists, then the collection must contain exactly one op.
    Status GetInitOp(const string& export_dir, const MetaGraphDef& meta_graph_def,
                     string* init_op_name);
    
    Status GetAssetFileDefs(const MetaGraphDef& meta_graph_def,
                            std::vector<AssetFileDef>* asset_file_defs);
    
    }  // namespace internal
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 12 20:05:11 UTC 2020
    - 1.5K bytes
    - Viewed (0)
Back to top