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

Method BuildResponse

core/predictor/framework/request_cache.cpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118int RequestCache::BuildResponse(const CacheEntry& entry,
119 predictor::general_model::Response* res) {
120 if (res == nullptr) {
121 return -1;
122 }
123 res->ParseFromString(entry.buf_);
124 res->clear_profile_time();
125 return 0;
126}
127
128int RequestCache::BuildCacheEntry(const Response& res, CacheEntry* entry) {
129 if (entry == nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected