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

Function valid_service_method

core/pdcodegen/src/pdcodegen.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73}
74bool valid_service_method(const std::vector<const MethodDescriptor*>& methods) {
75 if (methods.size() != 2) {
76 return false;
77 }
78 if (methods[0]->name() == "inference" && methods[1]->name() == "debug") {
79 return true;
80 }
81 if (methods[1]->name() == "inference" && methods[0]->name() == "debug") {
82 return true;
83 }
84 return false;
85}
86
87#ifdef BCLOUD
88class PdsCodeGenerator : public CodeGenerator {

Calls 2

sizeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected