MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / LITE_get_all_input_name

Function LITE_get_all_input_name

lite/lite-c/src/network.cpp:314–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314int LITE_get_all_input_name(
315 const LiteNetwork network, size_t* size, const char** name) {
316 LITE_CAPI_BEGIN();
317 LITE_ASSERT(network, "The network pass to LITE api is null");
318 auto&& names = lite::NetworkHelper::implement(static_cast<lite::Network*>(network))
319 ->get_all_input_name();
320 if (size)
321 *size = names.size();
322 if (name) {
323 for (auto in_name : names) {
324 *name = in_name;
325 name++;
326 }
327 }
328 LITE_CAPI_END();
329}
330
331int LITE_get_all_output_name(
332 const LiteNetwork network, size_t* size, const char** name) {

Callers 1

TESTFunction · 0.85

Calls 2

get_all_input_nameMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68