MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / enable

Method enable

core/cube/cube-server/src/framework.cpp:325–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325int Framework::enable(const std::string& version) {
326 int ret = 0;
327 if (version != "" && version == get_cur_version()) {
328 ret = 0;
329 } else if (version == get_bg_version()) {
330 ret = bg_switch();
331 } else {
332 LOG(WARNING) << "bg dict version not matched";
333 ret = -1;
334 }
335 return ret;
336}
337
338} // namespace mcube
339} // namespace rec

Callers 1

handle_enableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected