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

Method init

core/predictor/framework/workflow.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace predictor {
23
24int Workflow::init(const configure::Workflow& conf) {
25 const std::string& name = conf.name();
26 _type = conf.workflow_type();
27 _name = name;
28 if (_dag.init(conf, name) != 0) {
29 LOG(ERROR) << "Failed initialize dag: " << _name;
30 return -1;
31 }
32 return 0;
33}
34
35DagView* Workflow::fetch_dag_view(const std::string& service_name,
36 const uint64_t log_id) {

Callers 1

fetch_dag_viewMethod · 0.45

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected