MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BatchPredict

Method BatchPredict

serving/processor/serving/model_serving.cc:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57Status Model::BatchPredict(const void* input_data[], int* input_size,
58 void* output_data[], int* output_size) {
59 BatchCall call;
60 parser_->ParseBatchRequestFromBuf(input_data, input_size, call,
61 impl_->GetSignatureInfo());
62 auto status = Predict(call.batched_request, call.batched_response);
63 if (!status.ok()) {
64 return status;
65 }
66
67 parser_->ParseBatchResponseToBuf(call, output_data, output_size,
68 impl_->GetSignatureInfo());
69 return Status::OK();
70}
71
72Status Model::Predict(Request& req, Response& resp) {
73 return impl_->Predict(req, resp);

Callers 1

batch_processFunction · 0.80

Calls 4

GetSignatureInfoMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected