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

Function LITE_set_device_id

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

Source from the content-addressed store, hash-verified

346}
347
348int LITE_set_device_id(LiteNetwork network, int device_id) {
349 LITE_CAPI_BEGIN();
350 LITE_ASSERT(network, "The network pass to LITE api is null");
351 static_cast<lite::Network*>(network)->set_device_id(device_id);
352 LITE_CAPI_END();
353}
354
355int LITE_get_device_id(const LiteNetwork network, int* device_id) {
356 LITE_CAPI_BEGIN();

Callers

nothing calls this directly

Calls 1

set_device_idMethod · 0.80

Tested by

no test coverage detected