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

Function LITE_get_io_tensor

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

Source from the content-addressed store, hash-verified

270}
271
272int LITE_get_io_tensor(
273 LiteNetwork network, const char* io_name, LiteTensorPhase phase,
274 LiteTensor* tensor) {
275 LITE_CAPI_BEGIN();
276 LITE_ASSERT(network, "The network pass to LITE api is null");
277 auto io_tensor =
278 static_cast<lite::Network*>(network)->get_io_tensor(io_name, phase);
279 *tensor = io_tensor.get();
280 LITE_CAPI_END();
281}
282
283int LITE_get_discrete_tensor(
284 LiteNetwork network, const char* io_name, size_t n_idx, LiteTensorPhase phase,

Callers 5

basic_c_interfaceFunction · 0.85
device_io_c_interfaceFunction · 0.85
async_c_interfaceFunction · 0.85
basic_c_interfaceFunction · 0.85
TESTFunction · 0.85

Calls 2

get_io_tensorMethod · 0.45
getMethod · 0.45

Tested by 1

TESTFunction · 0.68