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

Function LITE_get_all_output_name

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

Source from the content-addressed store, hash-verified

329}
330
331int LITE_get_all_output_name(
332 const LiteNetwork network, size_t* size, const char** name) {
333 LITE_CAPI_BEGIN();
334 LITE_ASSERT(network, "The network pass to LITE api is null");
335 auto&& names = lite::NetworkHelper::implement(static_cast<lite::Network*>(network))
336 ->get_all_output_name();
337 if (size)
338 *size = names.size();
339 if (name) {
340 for (auto in_name : names) {
341 *name = in_name;
342 name++;
343 }
344 }
345 LITE_CAPI_END();
346}
347
348int LITE_set_device_id(LiteNetwork network, int device_id) {
349 LITE_CAPI_BEGIN();

Callers 1

TESTFunction · 0.85

Calls 2

get_all_output_nameMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68