MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MaybeUpdateRealVersion

Function MaybeUpdateRealVersion

serving/processor/serving/model_session.cc:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void MaybeUpdateRealVersion(Version* version, int64_t full_version,
44 int latest_version) {
45 if (version->full_ckpt_version != full_version) {
46 version->full_ckpt_version = full_version;
47 ModifyPathName(&version->full_ckpt_name, full_version);
48 }
49
50 if (version->delta_ckpt_version != latest_version) {
51 version->delta_ckpt_version = latest_version;
52 // No delta version
53 if (latest_version == 0) {
54 version->delta_ckpt_name = "";
55 } else {
56 ModifyPathName(&version->delta_ckpt_name, latest_version);
57 }
58 }
59}
60
61int LockOrWait(int64_t latest_version,
62 IFeatureStoreMgr* sparse_storage,

Callers 2

LockOrWaitFunction · 0.85
CreateModelSessionMethod · 0.85

Calls 1

ModifyPathNameFunction · 0.85

Tested by

no test coverage detected