| 207 | } |
| 208 | |
| 209 | int LITE_get_tensor_device_id(const LiteTensor tensor, int* device_id) { |
| 210 | LITE_CAPI_BEGIN(); |
| 211 | LITE_ASSERT(tensor && device_id, "The tensor pass to LITE c_api is null"); |
| 212 | *device_id = static_cast<lite::Tensor*>(tensor)->get_device_id(); |
| 213 | LITE_CAPI_END(); |
| 214 | } |
| 215 | |
| 216 | int LITE_is_pinned_host(const LiteTensor tensor, int* is_pinned_host) { |
| 217 | LITE_CAPI_BEGIN(); |
nothing calls this directly
no test coverage detected