diff --git a/interfaces/innerkits/c/neural_network_runtime_inner.h b/interfaces/innerkits/c/neural_network_runtime_inner.h index 22de228e3a587afdfcb14e62cbca656ec6d76a39..b6d97e717970e8ebaf5db157b138d06c53572d9e 100644 --- a/interfaces/innerkits/c/neural_network_runtime_inner.h +++ b/interfaces/innerkits/c/neural_network_runtime_inner.h @@ -153,6 +153,18 @@ bool OH_NNModel_HasCache(const char *cacheDir, const char *modelName, uint32_t v */ OH_NN_ReturnCode OH_NN_GetDeviceID(char *nnrtDevice, size_t len); +/** + * @brief 对cache进行crc校验和检验 + * + * 本接口不作为Neural Network Runtime接口对外开放。\n + * + * @param buffer 传入buffer参数。 + * @param length 传入length参数。 + * @return unsigned short值,函数的crc校验和。 + * @since 11 + * @version 1.0 + */ +unsigned short CacheInfoGetCrc16(char* buffer, size_t length); #ifdef __cplusplus } #endif // __cpluscplus diff --git a/interfaces/kits/c/neural_network_runtime/neural_network_runtime.h b/interfaces/kits/c/neural_network_runtime/neural_network_runtime.h index fdffb3f1e74f3d1d94288a986aff4a2a69f0f9c7..f1c9040f90555110483229f7ef107223c8900940 100644 --- a/interfaces/kits/c/neural_network_runtime/neural_network_runtime.h +++ b/interfaces/kits/c/neural_network_runtime/neural_network_runtime.h @@ -635,7 +635,6 @@ OH_NN_ReturnCode OH_NNExecutor_SetOutputWithMemory(OH_NNExecutor *executor, uint32_t outputIndex, const OH_NN_Memory *memory); -unsigned short CacheInfoGetCrc16(char* buffer, size_t length); #ifdef __cplusplus } #endif // __cplusplus