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

Method clear

tools/cpp_examples/elastic-ctr/client/api/elastic_ctr_api.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35std::set<std::string> ElasticCTRPredictorApi::slot_names_;
36
37int ThreadResource::clear() {
38 request_.clear_instances();
39 response_.clear_predictions();
40
41 for (auto it : instance_map_) {
42 delete it.second;
43 }
44 return 0;
45}
46
47ReqInstance *ThreadResource::add_instance() {
48 ReqInstance *instance = request_.add_instances();

Callers 14

ClearMethod · 0.45
inferenceMethod · 0.45
inferenceMethod · 0.45
inferenceMethod · 0.45
inferenceMethod · 0.45
inferenceMethod · 0.45
inferenceMethod · 0.45
thrd_clearMethod · 0.45
elastic_ctr.pyFile · 0.45
inferenceMethod · 0.45
mainFunction · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected