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

Function print_res

tools/cpp_examples/demo-client/src/echo.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected