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

Function LITE_is_pinned_host

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

Source from the content-addressed store, hash-verified

214}
215
216int LITE_is_pinned_host(const LiteTensor tensor, int* is_pinned_host) {
217 LITE_CAPI_BEGIN();
218 LITE_ASSERT(tensor, "The tensor pass to LITE c_api is null");
219 LITE_ASSERT(is_pinned_host, "The is_pinned_host ptr pass to LITE c_api is null");
220 *is_pinned_host = static_cast<lite::Tensor*>(tensor)->is_pinned_host();
221 LITE_CAPI_END();
222}
223
224int LITE_is_memory_continue(const LiteTensor tensor, int* is_continue) {
225 LITE_CAPI_BEGIN();

Callers 1

TESTFunction · 0.85

Calls 1

is_pinned_hostMethod · 0.45

Tested by 1

TESTFunction · 0.68