MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / LoadSnapshot

Function LoadSnapshot

oneflow/api/cpp/embedding/embedding.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void LoadSnapshot(const std::string& snapshot_name, const std::string& embedding_name,
36 int64_t local_rank_id, int64_t rank_id) {
37#ifdef WITH_CUDA
38 oneflow::Singleton<oneflow::embedding::EmbeddingManager>::Get()->LoadSnapshot(
39 embedding_name, local_rank_id, rank_id, snapshot_name);
40#else
41 UNIMPLEMENTED() << "OneEmbedding Only Support with CUDA";
42#endif
43}
44
45} // namespace embedding
46} // namespace oneflow_api

Callers 1

LoadOneEmbeddingFunction · 0.85

Calls 2

GetFunction · 0.85
LoadSnapshotMethod · 0.45

Tested by

no test coverage detected