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

Function LITE_reset_tensor_memory

lite/lite-c/src/tensor.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90int LITE_reset_tensor_memory(
91 LiteTensor tensor, void* prepared_data, size_t data_length_in_byte) {
92 LITE_CAPI_BEGIN();
93 LITE_ASSERT(tensor, "The tensor pass to LITE c_api is null");
94 LITE_ASSERT(prepared_data, "The prepared_data pass to LITE c_api is null");
95 static_cast<lite::Tensor*>(tensor)->reset(prepared_data, data_length_in_byte);
96 LITE_CAPI_END();
97}
98
99int LITE_reset_tensor(LiteTensor tensor, const LiteLayout layout, void* prepared_data) {
100 LITE_CAPI_BEGIN();

Callers 4

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

Calls 1

resetMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68