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

Method init

tools/cpp_examples/demo-client/src/text_classification.cpp:65–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65void DataFeed::init() {
66 _batch_id_buffer.reset(new int[10240 * 1024], [](int *p) { delete[] p; });
67 _label_buffer.reset(new int[10240 * 1024], [](int *p) { delete[] p; });
68}
69
70bool DataFeed::set_file(const char *filename) {
71 std::ifstream ifs(filename);

Callers 1

mainFunction · 0.45

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected