From be7e09c9267966c295411c654951018a0c1bbd02 Mon Sep 17 00:00:00 2001 From: linhai Date: Mon, 22 Jun 2026 19:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E5=92=8C=E5=8F=82=E6=95=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: linhai --- third_party/mindspore/kits/context.h | 4 ++-- third_party/mindspore/kits/types.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/third_party/mindspore/kits/context.h b/third_party/mindspore/kits/context.h index 9fe9c5ca1..1ac3797ee 100644 --- a/third_party/mindspore/kits/context.h +++ b/third_party/mindspore/kits/context.h @@ -215,8 +215,8 @@ OH_AI_API bool OH_AI_DeviceInfoGetEnableFP16(const OH_AI_DeviceInfoHandle device /** * @brief Set the NPU frequency, Only valid for NPU. * @param device_info Device info object handle. - * @param frequency Can be set to 1 (low power consumption), 2 (balanced), 3 (high performance), 4 (extreme - * performance), default as 3. + * @param frequency Can be set to 0 (automatic adjustment), 1 (low power consumption), 2 (balanced), 3 (high + * performance), 4 (extreme performance), default as 3. * @since 9 */ OH_AI_API void OH_AI_DeviceInfoSetFrequency(OH_AI_DeviceInfoHandle device_info, int frequency); diff --git a/third_party/mindspore/kits/types.h b/third_party/mindspore/kits/types.h index 0b3d26965..26e754a5b 100644 --- a/third_party/mindspore/kits/types.h +++ b/third_party/mindspore/kits/types.h @@ -161,6 +161,11 @@ typedef enum OH_AI_QuantizationType { OH_AI_UNKNOWN_QUANT_TYPE = 0xFFFFFFFF } OH_AI_QuantizationType; +/** + * @brief Defines the device descriptor of NNRT. + * + * @since 10 + */ typedef struct NNRTDeviceDesc NNRTDeviceDesc; #ifdef __cplusplus }