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

Function print_res

tools/cpp_examples/demo-client/src/load_general_model.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void print_res(const RequestAndResponse& req,
37 const RequestAndResponse& res,
38 std::string route_tag,
39 uint64_t elapse_ms) {
40 LOG(INFO) << "Reqeive result: a = " << res.a() << ", b = " << res.b();
41
42 LOG(INFO) << "Succ call predictor[echo_service], the tag is: " << route_tag
43 << ", elapse_ms: " << elapse_ms;
44}
45
46int main(int argc, char** argv) {
47 PredictorApi api;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected