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

Method ModelUpdate

serving/processor/serving/model_instance.cc:875–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875Status ModelUpdater::ModelUpdate(const Version& version,
876 ModelConfig* model_config, bool new_full_ckpt_generated) {
877 // Load new full model vesion
878 if (version.IsFullModel()) {
879 return FullModelUpdate(version, model_config);
880 } else {
881 // Load new full model vesion before incremental model be loaded.
882 if (new_full_ckpt_generated) {
883 TF_RETURN_IF_ERROR(FullModelUpdate(version, model_config));
884 }
885 return DeltaModelUpdate(version, model_config);
886 }
887}
888
889void ModelUpdater::WorkLoop() {
890 int try_count = 0;

Callers

nothing calls this directly

Calls 1

IsFullModelMethod · 0.80

Tested by

no test coverage detected