| 214 | } |
| 215 | |
| 216 | int 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 | |
| 224 | int LITE_is_memory_continue(const LiteTensor tensor, int* is_continue) { |
| 225 | LITE_CAPI_BEGIN(); |