mirror of
https://github.com/openharmony/interface_sdk_c.git
synced 2026-08-24 14:32:50 -04:00
!5196 merge master into master
文档更新版本号和参数说明 Created-by: LinHaier Commit-by: linhai Merged-by: openharmony_ci Description: ### 相关的Issue https://gitcode.com/openharmony/interface_sdk_c/issues/4031 ### 原因(目的、解决的问题等) SDK缺失NNRTDeviceDesc 版本号,导致AI监测发现和中文资料不一致。 ### 描述(做了什么,变更了什么) 补充SDK缺失的NNRTDeviceDesc 版本号 ### 自检结果(结果截图添加到下面) - [x] 是否通过C语法扫描 - [x] 是否通过注释规则扫描 - [ ] 是否更新json文件 - [x] 实现代码是否已经合入 - [x] 目标是否已经添加到interface/sdk_c仓ndk依赖目标(ndk_targets.gni)里 - [x] 头文件library声明与SDK so库名称一致 ### 兼容性影响评估,如有影响请写明(Y/N) - [ ] 不兼容 - [x] 是否经过评审 ### L0新增用例自检结果 - [ ] 是,有新增L0用例,且完成自检 - [x] 否 ### API参考文档影响评估(提供docs仓pr链接) - [ ] 是,已刷新API参考文档 - [x] 否,不涉及刷新API参考文档 See merge request: openharmony/interface_sdk_c!5196
This commit is contained in:
Vendored
+2
-2
@@ -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);
|
||||
|
||||
Vendored
+5
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user