| 88 | } |
| 89 | |
| 90 | int 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 | |
| 99 | int LITE_reset_tensor(LiteTensor tensor, const LiteLayout layout, void* prepared_data) { |
| 100 | LITE_CAPI_BEGIN(); |