From 7e4a5ceedafe1a238ae1cc6b809f133eb47c6366 Mon Sep 17 00:00:00 2001 From: w30052974 Date: Wed, 16 Apr 2025 15:47:22 +0800 Subject: [PATCH] =?UTF-8?q?5.1=E6=9E=B6=E6=9E=84=E6=95=B4=E6=94=B9?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: w30052974 --- .../innerkits/c/neural_network_runtime_inner.h | 12 ++++++++++++ .../neural_network_runtime/neural_network_runtime.h | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/interfaces/innerkits/c/neural_network_runtime_inner.h b/interfaces/innerkits/c/neural_network_runtime_inner.h index 22de228..b6d97e7 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 fdffb3f..f1c9040 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 -- Gitee