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

Function LITE_get_device_id

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

Source from the content-addressed store, hash-verified

353}
354
355int LITE_get_device_id(const LiteNetwork network, int* device_id) {
356 LITE_CAPI_BEGIN();
357 LITE_ASSERT(network, "The network pass to LITE api is null");
358 LITE_ASSERT(device_id, "The device_id pass to LITE api is null");
359 *device_id = static_cast<lite::Network*>(network)->get_device_id();
360 LITE_CAPI_END();
361}
362
363int LITE_set_stream_id(LiteNetwork network, int stream_id) {
364 LITE_CAPI_BEGIN();

Callers

nothing calls this directly

Calls 1

get_device_idMethod · 0.45

Tested by

no test coverage detected