Created with Pixso.
简体中文
简体中文
English
Русский
下载 App
Created with Pixso.
探索
探索
了解鸿蒙应用和多设备开发,学习如何构建应用/元服务
应用形态
HarmonyOS 应用
One as All,All as One
元服务
秒开直达 服务随行 无处不在
游戏
为游戏创意玩法带来无限可能
多设备应用开发
穿戴
折叠屏手机
鸿蒙电脑
开发者学堂
视频课程
Codelabs
设计
设计
了解鸿蒙应用和多设备开发,学习如何构建应用/元服务
开发
开发
获取官方开发工具和文档等资源,将创意转化为鸿蒙应用
开发工具
DevEco Studio
应用开发 IDE, AI Agent 和 CLI
小艺开放平台
Skill 和智能体开发平台
ArkTS
ArKUI
AppGallery Connect
DevEco Testing
开发资源
工具下载
示例代码
开发文档
最佳实践
分发
分发
通过华为应用市场发布你的应用,多渠道触达用户
应用分发
应用市场
纯净安全的全场景应用分发平台
游戏中心
应用审核政策
服务分发
小艺
HarmonyOS 的超级 AI 入口
智慧助手·今天
服务分发文档
内容分发
主题服务
内容分发文档
推广与变现
推广与变现
一站式流量增长与营销变现平台
推广
应用推广引擎
全链路应用推广与增长服务平台
鲸鸿动能广告
为企业广告主提供广告营销服务
联运服务
推广文档
变现
鲸鸿动能流量变现
使能应用展示广告,实现流量变现
应用内支付
变现文档
生态合作
生态合作
携手伙伴共建共享鸿蒙智能终端生态
伙伴 SDK
一站式获取安全可靠的鸿蒙伙伴 SDK
生态服务
鸿蒙应用开发、培训和人力服务
服务商伙伴中心
华为终端云服务商伙伴的统一门户
伙伴入驻指南
生态市场介绍,卖家和买家服务指引
廉洁政策
合作伙伴诚信廉洁政策
支持
支持
获取客服帮助、技术支持、活动资讯等信息
智能客服
24小时 AI 在线自助服务,即问即答
社区问答
在官方论坛提问,与开发者互动交流
在线提单
提交工单,获得技术支持
开发者活动
HDD 等线下活动速览及报名入口
资讯
帮助指南
输入关键字搜索
开发者能力认证
鸿蒙高校创新赛
HarmonyOS 7
animation
HarmonyOS行业解决方案
layoutWeight
HarmonyOS模板&组件
bindPopup
bindsheet
CTRL+K
文档
管理中心
我的
Hello,
欢迎来到开发者联盟
管理中心
个人中心
我的学堂
我的收藏
我的活动
我的工单
立即登录
HMS Core
AI
输入关键字搜索
开发者能力认证
鸿蒙高校创新赛
HarmonyOS 7
animation
HarmonyOS行业解决方案
layoutWeight
HarmonyOS模板&组件
bindPopup
bindsheet
CTRL+K
API参考
指南
API参考
示例代码
SDK
更多
机器学习服务
说明
Android
Package Summary
com.huawei.hms.mlsdk.common
Overview
Interface Summary
LensEngine.PhotographListener
LensEngine.ShutterListener
MLAnalyzer.MLTransactor
MLCompositeTransactor.TrailerFactory
Class Summary
LensEngine
LensEngine.Creator
MLAnalyzer
MLAnalyzer.Result
MLApplication
MLApplicationSetting
MLApplicationSetting.Factory
MLCompositeAnalyzer
MLCompositeAnalyzer.Creator
MLCompositeTransactor
MLCompositeTransactor.Creator
MLCoordinate
MLFrame
MLFrame.Creator
MLFrame.Property
MLPosition
MLProminentTransactor
MLResultTrailer
Exception Summary
MLException
com.huawei.hms.mlsdk.common.lens
Overview
Class Summary
LensRequest
LensResponse
MLLensSelector
com.huawei.hms.mlsdk
Overview
Class Summary
MLAnalyzerFactory
com.huawei.hms.mlsdk.card
Overview
Class Summary
MLCardAnalyzerFactory
com.huawei.hms.mlsdk.card.icr
Overview
Class Summary
MLIcrAnalyzer
MLIcrAnalyzerSetting
MLIcrAnalyzerSetting.Factory
MLIdCard
com.huawei.hms.mlsdk.si.speech
Ovreview
Interface Summary
MLSimultaneousInterpretationListener
Class Summary
MLSimultaneousInterpretationConstants
MLSimultaneousInterpretationRecognizer
MLSimultaneousInterpretationConfig
MLSimultaneousInterpretationConfig.Factory
错误码
com.huawei.hms.mlplugin.card.icr.cn
Overview
Interface Summary
MLCnIcrCapture.CallBack
Class Summary
MLCnIcrCapture
MLCnIcrCaptureConfig
MLCnIcrCaptureConfig.Factory
MLCnIcrCaptureFactory
MLCnIcrCaptureResult
com.huawei.hms.mlplugin.card.icr.vn
Overview
Interface Summary
MLVnIcrCapture.CallBack
Class Summary
MLVnIcrCapture
MLVnIcrCaptureConfig
MLVnIcrCaptureConfig.Factory
MLVnIcrCaptureFactory
MLVnIcrCaptureResult
com.huawei.hms.mlplugin.card.bcr
Overview
Interface Summary
CustomView.OnBcrResultCallback
MLBcrCapture.Callback
Class Summary
CustomView
CustomView.Builder
MLBcrCapture
MLBcrCaptureConfig
MLBcrCaptureConfig.Factory
MLBcrCaptureFactory
MLBcrCaptureResult
com.huawei.hms.mlplugin.card.gcr
Overview
Interface Summary
MLGcrCapture.Callback
Class Summary
MLGcrCapture
MLGcrCaptureConfig
MLGcrCaptureConfig.Factory
MLGcrCaptureFactory
MLGcrCaptureResult
MLGcrCaptureUIConfig
MLGcrCaptureUIConfig.Factory
com.huawei.hms.mlsdk.document
Overview
Class Summary
MLDocument
MLDocument.Base
MLDocument.Block
MLDocument.Character
MLDocument.Interval
MLDocument.Line
MLDocument.Section
MLDocument.Word
MLDocumentAnalyzer
MLDocumentSetting
MLDocumentSetting.Factory
错误码
com.huawei.hms.mlsdk.entity
Overview
Class Summary
MLNerFactory
com.huawei.hms.mlsdk.entity.cloud
Overview
Class Summary
MLRemoteNerSetting
MLRemoteNerSetting.Factory
MLRemoteNer
错误码
com.huawei.hms.mlsdk.entity.cloud.bo
Overview
Class Summary
RemoteNerResultItem
com.huawei.hms.mlsdk.fr
Overview
Class Summary
MLFormRecognitionAnalyzer
MLFormRecognitionAnalyzerFactory
MLFormRecognitionAnalyzerSetting
MLFormRecognitionAnalyzerSetting.Factory
MLFormRecognitionConstant
MLFormRecognitionTablesAttribute
MLFormRecognitionTablesAttribute.TablesContent
MLFormRecognitionTablesAttribute.TablesContent.TableAttribute
MLFormRecognitionTablesAttribute.TablesContent.TableAttribute.TableCellAttribute
MLFormRecognitionTablesAttribute.TablesContent.TableAttribute.TableCellAttribute.TableCellCoordinateAttribute
com.huawei.hms.mlsdk.text
Overview
Class Summary
MLLocalTextSetting
MLLocalTextSetting.Factory
MLRemoteTextSetting
MLRemoteTextSetting.Factory
MLText
MLText.Base
MLText.Block
MLText.TextLine
MLText.Word
MLTextAnalyzer
MLTextAnalyzer.Factory
TextLanguage
错误码
com.huawei.hms.mlsdk.translate
Overview
Class Summary
MLTranslateLanguage
MLTranslatorFactory
com.huawei.hms.mlsdk.translate.local
Overview
Class Summary
MLLocalTranslateSetting
MLLocalTranslateSetting.Factory
MLLocalTranslator
MLLocalTranslatorModel
MLLocalTranslatorModel.Factory
错误码
com.huawei.hms.mlsdk.translate.cloud
Overview
Class Summary
MLRemoteTranslateSetting
MLRemoteTranslateSetting.Factory
MLRemoteTranslator
错误码
com.huawei.hms.mlsdk.model.download
Overview
Interface Summary
MLModelDownloadListener
Class Summary
MLLocalModelManager
MLModelDownloadStrategy
MLModelDownloadStrategy.Factory
MLLocalModel
MLRemoteModel
错误码
com.huawei.hms.mlsdk.langdetect
Overview
Class Summary
MLDetectedLang
MLLangDetectorFactory
com.huawei.hms.mlsdk.langdetect.local
Overview
Class Summary
MLLocalLangDetector
MLLocalLangDetectorSetting
MLLocalLangDetectorSetting.Factory
错误码
com.huawei.hms.mlsdk.langdetect.cloud
Overview
Class Summary
MLRemoteLangDetector
MLRemoteLangDetectorSetting
MLRemoteLangDetectorSetting.Factory
错误码
com.huawei.hms.mlsdk.asr
Overview
Interface Summary
MLAsrListener
MLAsrRecognizer.LanguageCallback
Class Summary
MLAsrConstants
MLAsrRecognizer
错误码
com.huawei.hms.mlplugin.asr
Overview
Class Summary
MLAsrCaptureConstants
com.huawei.hms.mlsdk.tts
Overview
Interface Summary
MLTtsCallback
Class Summary
MLTtsAudioFragment
MLTtsConfig
MLTtsConstants
MLTtsEngine
MLTtsError
MLTtsLocalModel
MLTtsLocalModel.Factory
MLTtsSpeaker
MLTtsWarn
错误码
com.huawei.hms.mlsdk.aft
Overview
Class Summary
MLAftConstants
MLAftConstants.ProgressStatus
MLAftConstants.TaskMetadata
MLAftErrors
MLAftEvents
错误码
com.huawei.hms.mlsdk.aft.cloud
Overview
Interface Summary
MLRemoteAftEngine.LanguageCallback
MLRemoteAftListener
Class Summary
MLRemoteAftEngine
MLRemoteAftResult
MLRemoteAftResult.Segment
MLRemoteAftSetting
MLRemoteAftSetting.Factory
com.huawei.hms.mlsdk.speechrtt
Overview
Interface Summary
MLSpeechRealTimeTranscription.LanguageCallback
MLSpeechRealTimeTranscriptionListener
Class summary
MLSpeechRealTimeTranscription
MLSpeechRealTimeTranscriptionConfig
MLSpeechRealTimeTranscriptionConfig.Factory
MLSpeechRealTimeTranscriptionConstants
MLSpeechRealTimeTranscriptionResult
错误码
com.huawei.hms.mlsdk.sounddect
Overview
Interface Summary
MLSoundDetectListener
Class Summary
MLSoundDetectConstants
MLSoundDetector
错误码
com.huawei.hms.mlsdk.classification
Overview
Class Summary
MLImageClassification
MLImageClassificationAnalyzer
MLImageClassificationAnalyzer.ImageClassificationType
MLLocalClassificationAnalyzerSetting
MLLocalClassificationAnalyzerSetting.Factory
MLRemoteClassificationAnalyzerSetting
MLRemoteClassificationAnalyzerSetting.Factory
错误码
com.huawei.hms.mlsdk.objects
Overview
Class Summary
MLObject
MLObjectAnalyzer
MLObjectAnalyzerSetting
MLObjectAnalyzerSetting.Factory
com.huawei.hms.mlsdk.landmark
Overview
Class Summary
MLRemoteLandmark
MLRemoteLandmarkAnalyzer
MLRemoteLandmarkAnalyzerSetting
MLRemoteLandmarkAnalyzerSetting.Factory
错误码
com.huawei.hms.mlsdk.imgseg
Overview
Class Summary
MLImageSegmentation
MLImageSegmentationAnalyzer
MLImageSegmentationClassification
MLImageSegmentationScene
MLImageSegmentationSetting
MLImageSegmentationSetting.Factory
com.huawei.hms.mlsdk.productvisionsearch
Overview
Class Summary
MLProductVisionSearch
MLVisionSearchProduct
MLVisionSearchProductImage
错误码
com.huawei.hms.mlsdk.productvisionsearch.cloud
Overview
Class Summary
MLRemoteProductVisionSearchAnalyzer
MLRemoteProductVisionSearchAnalyzerSetting
MLRemoteProductVisionSearchAnalyzerSetting.Factory
com.huawei.hms.mlplugin.productvisionsearch
Overview
Class Summary
MLProductVisionSearchCapture
MLProductVisionSearchCapture.AbstractProductFragment
MLProductVisionSearchCaptureConfig
MLProductVisionSearchCaptureConfig.Factory
MLProductVisionSearchCaptureFactory
com.huawei.hms.mlsdk.imagesuperresolution
Overview
Class Summary
MLImageSuperResolutionAnalyzer
MLImageSuperResolutionAnalyzerFactory
MLImageSuperResolutionAnalyzerSetting
MLImageSuperResolutionAnalyzerSetting.Factory
MLImageSuperResolutionResult
错误码
com.huawei.hms.mlsdk.dsc
Overview
Class Summary
MLDocumentSkewCorrectionConstant
MLDocumentSkewCorrectionAnalyzer
MLDocumentSkewCorrectionAnalyzerFactory
MLDocumentSkewCorrectionAnalyzerSetting
MLDocumentSkewCorrectionAnalyzerSetting.Factory
MLDocumentSkewCorrectionCoordinateInput
MLDocumentSkewCorrectionResult
MLDocumentSkewDetectResult
com.huawei.hms.mlsdk.textimagesuperresolution
Overview
Class Summary
MLTextImageSuperResolutionAnalyzer
MLTextImageSuperResolutionAnalyzerFactory
MLTextImageSuperResolution
错误码
com.huawei.hms.mlsdk.scd
Overview
Class Summary
MLSceneDetectionAnalyzer
MLSceneDetectionAnalyzerFactory
MLSceneDetectionAnalyzerSetting
MLSceneDetectionAnalyzerSetting.Factory
MLSceneDetection
错误码
com.huawei.hms.mlsdk.face
Overview
Class Summary
MLFace
MLFaceAnalyzer
MLFaceAnalyzerSetting
MLFaceAnalyzerSetting.Factory
MLFaceEmotion
MLFaceFeature
MLFaceKeyPoint
MLFaceShape
MLMaxSizeFaceTransactor
MLMaxSizeFaceTransactor.Creator
com.huawei.hms.mlsdk.face.face3d
Overview
Class Summary
ML3DFace
ML3DFaceAnalyzer
ML3DFaceAnalyzerSetting
ML3DFaceAnalyzerSetting.Factory
com.huawei.hms.mlsdk.skeleton
Overview
Class Summary
MLJoint
MLSkeleton
MLSkeletonAnalyzer
MLSkeletonAnalyzerFactory
MLSkeletonAnalyzerSetting
MLSkeletonAnalyzerSetting.Factory
com.huawei.hms.mlsdk.livenessdetection
Overview
Interface Summary
MLLivenessCapture.Callback
OnMLLivenessDetectCallback
Class Summary
MLLivenessCapture
MLLivenessCaptureError
MLLivenessCaptureConfig
MLLivenessCaptureConfig.Builder
MLLivenessCaptureResult
MLLivenessDetectInfo
MLLivenessDetectStates
MLLivenessDetectView
MLLivenessDetectView.Builder
错误码
com.huawei.hms.mlsdk.interactiveliveness
Overview
Interface Summary
OnMLInteractiveLivenessDetectCallback
MLInteractiveLivenessCapture.Callback
Class Summary
MLInteractiveLivenessCapture
MLInteractiveLivenessCaptureConfig
MLInteractiveLivenessCaptureConfig.Builder
MLInteractiveLivenessCaptureError
MLInteractiveLivenessCaptureResult
MLInteractiveLivenessDetectView
MLInteractiveLivenessDetectView.Builder
com.huawei.hms.mlsdk.interactiveliveness.action
Overview
Class Summary
MLInteractiveLivenessConfig
MLInteractiveLivenessConfig.Builder
InteractiveLivenessStateCode
com.huawei.hms.mlsdk.handkeypoint
Overview
Class Summary
MLHandKeypoint
MLHandKeypointAnalyzer
MLHandKeypointAnalyzerFactory
MLHandKeypointAnalyzerSetting
MLHandKeypointAnalyzerSetting.Factory
MLHandKeypoints
com.huawei.hms.mlsdk.gesture
Overview
Class Summary
MLGesture
MLGestureAnalyzer
MLGestureAnalyzerFactory
MLGestureAnalyzerSetting
MLGestureAnalyzerSetting.Factory
com.huawei.hms.mlsdk.faceverify
Overview
Class Summary
MLFaceInfo
MLFaceTemplateResult
MLFaceVerificationAnalyzer
MLFaceVerificationAnalyzerFactory
MLFaceVerificationAnalyzerSetting
MLFaceVerificationAnalyzerSetting.Factory
MLFaceVerificationResult
com.huawei.hms.mlsdk.textembedding
Overview
Class Summary
MLTextEmbeddingAnalyzer
MLTextEmbeddingAnalyzerFactory
MLTextEmbeddingSetting
MLTextEmbeddingSetting.Factory
MLVocabularyVersion
错误码
Exception Summary
MLTextEmbeddingException
com.huawei.hms.mlsdk.custom
Overview
Class Summary
MLCustomLocalModel
MLCustomLocalModel.Factory
MLCustomRemoteModel
MLCustomRemoteModel.Factory
MLModelDataType
MLModelExecutor
MLModelExecutorSettings
MLModelExecutorSettings.Factory
MLModelInputOutputSettings
MLModelInputOutputSettings.Factory
MLModelInputs
MLModelInputs.Factory
MLModelOutputs
错误码
iOS
Package Summary
ProductVisionSearch
Overview
Class Summary
MLRemoteProductVisionSearchAnalyzer
MLRemoteProductVisionSearchAnalyzerSetting
MLProductVisionSearch
MLVisionSearchProductImage
MLVisionSearchProduct
MLApplication
ImageSegmentation
Overview
Class Summary
MLImageSegmentation
MLImageSegmentationAnalyzer
MLImageSegmentationSetting
Enum Value Summary
MLImageSegmentationScene
MLImageSegmentationClassification
MLImageSegmentationAnalyzerType
translate
Overview
Class Summary
MLTranslateLanguage
MLTranslatorFactory
translate.cloud
Overview
Class Summary
MLRemoteTranslateSetting
MLRemoteTranslator
MLTranslateApplication
MLTranslateException
错误码
langdetect
Overview
Class Summary
MLDetectedLang
MLLangDetectorFactory
langdetect.cloud
Overview
Class Summary
MLRemoteLangDetector
MLRemoteLangDetectorSetting
MLLangDetectApplication
MLLangDetectionException
错误码
CANN
IR模型构建APIs
Overview
属性类
SetAttr
GetAttr
HasAttr
DelAttr
SetName
GetName
GetItem
SetInt
GetInt
SetFloat
GetFloat
SetBool
GetBool
SetString
GetString
SetTensor
GetTensor
SetNamedAttrs
GetNamedAttrs
SetGraph
GetGraph
SetBuffer
GetBuffer
SetTensorDesc
GetTensorDesc
SetIntList
GetIntList
SetFloatList
GetFloatList
SetBoolList
GetBoolList
SetStringList
GetStringList
SetTensorList
GetTensorList
SetNamedAttrsList
GetNamedAttrsList
SetGraphList
GetGraphList
SetBufferList
GetBufferList
SetTensorDescList
GetTensorDescList
CreateFrom
GetValueType
IsEmpty
operator==
InitDefault
GetProtoOwner
GetProtoMsg
CopyValueFrom
MoveValueFrom
Tensor类
GetTensorDesc
MutableTensorDesc
SetTensorDesc
GetData
MutableData
SetData
operator=
TensorDesc类
GetName
SetName
GetShape
MutableShape
SetShape
GetFormat
SetFormat
GetDataType
SetDataType
operator=
Shape类
GetDimNum
GetDim
GetDims
SetDim
GetTotalDimNum
operator=
Buffer类
Buffer
MutableData
GetSize
CopyFrom
data
size
Clear
operator=
Operator类
GetName
GetImpl
GetOutput
SetInput
SetDynamicInput
UpdateInputDesc
SetAttr
SetGraphBuilder
Operator注册类
使用说明
REG_OP
ATTR
REQUIRED_ATTR
INPUT
OPTIONAL_INPUT
OPTIONAL_OUTPUT
DYNAMIC_INPUT
OUTPUT
DYNAMIC_OUTPUT
OP_END
REQUIRED_GRAPH
Graph类
GetImpl
SetInputs
SetOutputs
IsValid
AddOp
FindOpByName
CheckOpByName
GetAllOpName
Model类
SetName
GetName
SetVersion
GetVersion
SetPlatformVersion
GetPlatformVersion
GetGraph
SetGraph
Save
Load
IsValid
模型构建类
CreateModelBuff(ge::Model& irModel,ModelBufferData& output)
CreateModelBuff(ge::Model& irModel, ModelBufferData& output, uint32_t customSize)
Build
BuildIRModel(ge::Model& irModel, ModelBufferData& output)
BuildIRModel(ge::Model& irModel, ModelBufferData& output, const BuildOptions& options)
ReleaseModelBuff
Model Dump类
SaveToFile
枚举类
ValueType
Format
DataType
结构体类
ModelBufferData
模型管家V1接口
Overview
模型管家类
GetVersion
Init
Load
Process
CheckModelCompatibility
GetModelIOTensorDim
UnLoadModel
SetModelPriority
Cancel
模型编译类
BuildModel
ReadBinaryProto(const string path)
ReadBinaryProto(void* data, uint32_t size)
InputMemBufferCreate(void* data, uint32_t size)
InputMemBufferCreate(const string path)
OutputMemBufferCreate
MemBufferDestroy
MemBufferExportFile
模型描述类
GetName
GetModelBuffer
SetModelBuffer
GetFrequency
GetFramework
GetModelType
GetDeviceType
GetModelNetSize
SetInputDims
GetInputDims
SetDynamicShapeConfig
GetDynamicShapeConfig
SetPrecisionMode
GetPrecisionMode
SetTuningStrategy
GetTuningStrategy
模型Tensor创建类
Init
GetBuffer
GetSize
SetTensorDimension
GetTensorDimension
GetTensorBuffer
CreateNativeHandle
AIPP对外接口类
通用接口
GetModelAippPara(const std::string& modelName, std::vector<std::shared_ptr<AippPara>>& aippPara)
GetModelAippPara(const std::string& modelName, uint32_t index, std::vector<std::shared_ptr<AippPara>>& aippPara)
GetBuffer
GetSize
GetAiTensor
GetAippParas()
GetAippParas(uint32_t index)
Init(uint32_t batchCount)
GetBatchCount
SetInputIndex
GetInputIndex
SetInputAippIndex
GetInputAippIndex
GetInputShape
GetInputFormat
GetCscPara
GetChannelSwapPara
GetCropPara
GetResizePara
GetPaddingPara
GetDtcPara
HIAI_CreateAiPPTensorFromHandle
动态AIPP接口
SetInputShape
SetInputFormat
SetCscPara(AippCscPara cscPara)
SetCscPara(AiTensorImage_Format targetFormat, ImageType imageType=JPEG)
SetChannelSwapPara
SetCropPara(AippCropPara cropPara)
SetCropPara(uint32_t batchIndex, AippCropPara cropPara)
SetResizePara(AippResizePara resizePara)
SetResizePara(uint32_t batchIndex, AippResizePara resizePara)
SetPaddingPara(AippPaddingPara paddingPara)
SetPaddingPara(uint32_t batchIndex, AippPaddingPara paddingPara)
SetDtcPara(AippDtcPara dtcPara)
SetDtcPara(uint32_t batchIndex, AippDtcPara dtcPara)
使用示例
用户自定义上下文类
GetPara
AddPara
SetPara
DelPara
ClearPara
GetAllKeys
异步回调注册类
OnProcessDone
OnServiceDied
Tensor尺寸描述结构类
SetNumber
SetChannel
SetHeight
SetWidth
GetNumber
GetChannel
GetHeight
GetWidth
IsEqual
MemBuffer通用CANN内存buffer类
GetMemBufferData
GetMemBufferSize
枚举类
AiModelDescription_Frequency
AiModelDescription_DeviceType
AiModelDescription_Framework
AiModelDescription_ModelType
AiTensorImage_Format
HIAI_DataType
ModelPriority
OpExecuteDevice
PrecisionMode
CacheMode
WeightDataType
ExecuteDeviceSelectMode
TuningStrategy
ImageType
ExecuteDevice
DeviceMemoryReusePlan
结构体类
AippChannelSwapPara
AippCropPara
AippCscPara
AippDtcPara
AippInputShape
AippPaddingPara
AippResizePara
BuildOptions
DynamicShapeConfig
NativeHandle
模型管家V2接口
Overview
模型编译类
Build
CreateModelBuilder
已编译模型类
CreateBuiltModel
CheckCompatibility
GetInputTensorDescs
GetName
GetOutputTensorDescs
RestoreFromBuffer
RestoreFromFile
SaveToBuffer
SaveToExternalBuffer
SaveToFile
SetName
模型管家类
CreateModelManager
Cancel
DeInit
Init
Run
RunAsync
SetPriority
模型Tensor创建类
IBuffer
CreateLocalBuffer
GetData
GetSize
INDTensorBuffer
CreateNDTensorBuffer
GetTensorDesc
CreateNDTensorBufferNoCopy
CreateNativeHandle
用户自定义上下文类
GetValue
GetContent
RemoveValue
SetValue
异步回调注册类
OnRunDone
OnServiceDied
枚举类
CacheMode
DataType
Format
FormatMode
ModelPriority
PrecisionMode
PerfMode
DeviceConfigMode
FallBackMode
ExecuteDevice
ImageFormat
ImageColorSpace
TuningStrategy
DeviceMemoryReusePlan
结构体类
ModelBuildOptions
ModelInitOptions
NDTensorDesc
NativeHandle
ModelDeviceConfig
CropPara
ResizePara
ChannelSwapPara
CscPara
DtcPara
RotatePara
PadPara
CustomModelData
DynamicShapeConfig
获取版本号
AIPP对外接口类
通用接口
CreateImageConfigTensor
CreateConfigConst
CreateConfigData
CreateImageTensorBuffer
CreateImageTensorBufferFromHandle
SetCustomData
GetCustomData
Batch
Height
Width
Format
ColorSpace
Rotation
使用示例
计算能力增强接口
Overview
使能计算能力增强
获取计算能力增强版本号
单算子能力接口
Overview
单算子Tensor管理类
HiAI_SingleOpTensorDesc_Create
HiAI_SingleOpTensorDesc_GetDimensionCount
HiAI_SingleOpTensorDesc_GetDimension
HiAI_SingleOpTensorDesc_GetDataType
HiAI_SingleOpTensorDesc_GetFormat
HiAI_SingleOpTensorDesc_IsVirtual
HiAI_SingleOpTensorDesc_GetByteSize
HiAI_SingleOpTensorDesc_Destroy
HiAI_SingleOpBuffer_Create
HiAI_SingleOpBuffer_GetSize
HiAI_SingleOpBuffer_GetData
HiAI_SingleOpBuffer_Destroy
HiAI_SingleOpTensor_CreateFromTensorDesc
HiAI_SingleOpTensor_CreateFromSingleOpBuffer
HiAI_SingleOpTensor_CreateFromConst
HiAI_SingleOpTensor_GetTensorDesc
HiAI_SingleOpTensor_GetBuffer
HiAI_SingleOpTensor_Destroy
单算子Executor管理类
HiAI_SingleOpOptions_Create
HiAI_SingleOpOptions_Destroy
HiAI_SingleOpDescriptor_CreateConvolution
HiAI_SingleOpDescriptor_CreateActivation
HiAI_SingleOpDescriptor_Destroy
HiAI_SingleOpExecutor_PreCheckConvolution
HiAI_SingleOpExecutor_CreateConvolution
HiAI_SingleOpExecutor_PreCheckFusedConvolutionActivation
HiAI_SingleOpExecutor_CreateFusedConvolutionActivation
HiAI_SingleOpExecutor_Destroy
HiAI_SingleOpExecutor_UpdateOutputTensorDesc
HiAI_SingleOpExecutor_GetWorkspaceSize
HiAI_SingleOpExecutor_Init
HiAI_SingleOpExecutor_Execute
枚举类
HiAI_SingleOp_SupportStatus
HiAI_SingleOp_DataType
HiAI_SingleOp_Format
HiAI_SingleOp_ConvMode
HiAI_SingleOp_PadMode
HiAI_SingleOp_ActivationType
AscendC算子接口
AscendC API
AscendC API列表
通用约束
数据类型定义
LocalTensor
GlobalTensor
ShapeInfo
UnaryRepeatParams
BinaryRepeatParams
基础API
标量计算
ScalarGetCountOfValue
ScalarCountLeadingZero
ScalarCast
CountBitsCntSameAsSignBit
ScalarGetSFFValue
矢量计算
单目指令
Exp
Ln
Abs
Reciprocal
Sqrt
Rsqrt
Not
Relu
更多样例
双目指令
Add
Sub
Mul
Div
Max
Min
And
Or
更多样例
标量双目指令
Adds
Muls
Maxs
Mins
ShiftLeft
ShiftRight
LeakyRelu
更多样例
标量三目指令
Axpy
更多样例
精度转换指令
数据转换
Transpose
TransDataTo5HD
数据填充
Duplicate
CreateVecIndex
数据分散/数据收集
数据搬运
DataCopy
普通数据搬运
随路格式转换
DataCopyPad
内存管理与同步控制
TPipe
构造函数
InitBuffer
Init
Destroy
Reset
AllocEventID
ReleaseEventID
FetchEventID
GetBaseAddr
InitBufPool
GetTPipePtr
TBufPool
简介
构造函数
InitBufPool
InitBuffer
Reset
TQue
简介
AllocTensor
FreeTensor
EnQue
DeQue
VacantInQue
HasTensorInQue
GetTensorCountInQue
HasIdleBuffer
FreeAllEvent
TQueBind
简介
构造函数
AllocTensor
FreeTensor
EnQue
DeQue
VacantInQue
HasTensorInQue
GetTensorCountInQue
HasIdleBuffer
FreeAllEvent
TBuf
简介
构造函数
Get
GetWithOffset
workspace
GetSysWorkSpacePtr
SetSysWorkSpace
GetUserWorkspace
核内同步
PipeBarrier(ISASI)
TPosition
系统变量访问
GetBlockNum
GetBlockIdx
调测接口
DumpTensor
printf
assert
DumpAccChkPoint
Trap
Kernel Tiling
GET_TILING_DATA
GET_TILING_DATA_WITH_STRUCT
TILING_KEY_IS
高阶API
矩阵相乘
Matmul
使用说明
Matmul模板参数
MatmulConfig
Init
SetTensorA
SetTensorB
Iterate
GetTensorC
IterateAll
End
Matmul Tiling
使用说明
构造函数
TCubeTiling结构体
数学库
Tanh
激活函数
SoftmaxFlashV2
Sigmoid
数据填充
Host API
原型注册与管理
原型注册接口(OP_ADD)
OpDef
Input
Output
Attr
SetInferShape
SetInferDataType
AICore
OpParamDef
ParamType
DataType
Format
ValueDepend
Follow
OpAttrDef
OpAICoreDef
SetTiling
AddConfig
Tiling数据结构注册
TilingData结构定义
TilingData结构注册
平台信息获取PlatformAscendC
简介
GetCoreNum
GetSocVersion
GetCoreNumAic
GetCoreNumAiv
CalcTschBlockDim
GetCoreMemSize
GetCoreMemBw
GetLibApiWorkSpaceSize
内部关联接口
算子调测API
GmAlloc
GmFree
ICPU_RUN_KF
ICPU_SET_TILING_KEY
基础数据结构和接口
基础数据结构和接口列表
gert命名空间
AnchorInstanceInfo
简介
构造函数
GetInstanceNum
GetInstanceStart
SetInstanceStart
SetInstantiationNum
CompileTimeTensorDesc
构造函数
GetDataType
GetFormat
GetOriginFormat
GetStorageFormat
GetExpandDimsType
SetDataType
SetStorageFormat
SetOriginFormat
SetExpandDimsType
ComputeNodeInfo
简介
构造函数
GetNodeType
GetNodeName
GetIrInputsNum
GetInputsNum
GetOutputsNum
GetIrOutputsNum
GetInputInstanceInfo
GetOutputInstanceInfo
GetInputTdInfo
GetOutputTdInfo
GetAttrs
MutableInputInstanceInfo
MutableOutputInstanceInfo
MutableInputTdInfo
MutableOutputTdInfo
MutableAttrs
SetNodeType
SetNodeName
Init
CalcSize
ContinuousVectorVector
简介
Init
Add
Get
GetSize
GetOverHeadLength
ContinuousVector
简介
Create
Init
GetSize
SetSize
GetCapacity
GetData
MutableData
ExpandDimsType
简介
构造函数
operator==
GetFullSize
SetExpandIndex
IsExpandIndex
Expand(输出新shape)
Expand(更改原shape)
ExtendedKernelContext
GetInputDesc
GetOutputDesc
GetOptionalInputDesc
GetDynamicInputDesc
GetRequiredInputDesc
GetIrInputInstanceInfo
GetIrOutputInstanceInfo
GetComputeNodeInputNum
GetComputeNodeOutputNum
GetAttrs
GetNodeType
GetNodeName
GetComputeNodeInfo
GetKernelName
GetKernelType
GetExtendInfo
InferDataTypeContext
GetInputDataType
GetOptionalInputDataType
GetRequiredInputDataType
GetOutputDataType
SetOutputDataType
InferShapeContext
GetInputShape
GetInputTensor
GetOptionalInputShape
GetRequiredInputTensor
GetRequiredInputShape
GetOutputShape
InferShapeRangeContext
GetInputShapeRange
GetInputTensorRange
GetOptionalInputTensorRange
GetDynamicInputTensorRange
GetOptionalInputShapeRange
GetDynamicInputShapeRange
GetRequiredInputShapeRange
GetRequiredInputTensorRange
GetOutputShapeRange
OpImplRegisterV2
构造和析构函数
InferShape
InferShapeRange
InferDataType
Tiling
PrivateAttr
TilingParse
InputsDataDependency
InferOutDataTypeSameWithFirstInput
GenSimplifiedKey
OpExecuteFunc
TilingInputsDataDependency
HostInputs
OutputShapeDependOnCompute
Range
简介
构造函数
operator==
SetMin
SetMax
GetMin
GetMax
RuntimeAttrs
构造函数
GetAttrPointer
GetInt
GetListInt
GetListListInt
GetStr
GetTensor
GetFloat
GetBool
GetListFloat
GetListListFloat
GetAttrNum
Shape
简介
构造函数
operator==
operator!=
operator[]
IsScalar
SetScalar
GetDimNum
SetDimNum
GetDim
SetDim
AppendDim
StorageFormat
构造函数
GetOriginFormat
SetOriginFormat
GetStorageFormat
SetStorageFormat
GetExpandDimsType
SetExpandDimsType
MutableExpandDimsType
operator==
operator!=
StorageShape
简介
构造函数
GetOriginShape
GetStorageShape
MutableOriginShape
MutableStorageShape
operator==
operator!=
TensorData
构造函数与析构函数
operator
GetAddr
GetSize
SetSize
GetPlacement
SetPlacement
Free
SetAddr
IsSharedWith
ShareFrom
TensorPlacementUtils
Tensor
构造函数
GetShapeSize
GetData
SetData
GetAddr
GetSize
SetSize
GetDataType
SetDataType
CreateFollowing
GetStorageShape
MutableStorageShape
GetOriginShape
MutableOriginShape
GetShape
GetStorageFormat
SetStorageFormat
GetOriginFormat
SetOriginFormat
GetFormat
MutableFormat
GetExpandDimsType
SetExpandDimsType
GetPlacement
SetPlacement
GetTensorData
MutableTensorData
TilingContext
GetInputShape
GetInputTensor
GetOptionalInputTensor
GetRequiredInputTensor
GetOptionalInputShape
GetRequiredInputShape
GetOutputShape
SetTilingKey
GetTilingKey
SetBlockDim
GetBlockDim
SetTilingCond
GetTilingCond
GetTilingData
GetRawTilingData
GetWorkspaceSizes
GetWorkspaceNum
GetPlatformInfo
TilingData
构造函数
GetCapacity
GetDataSize
SetDataSize
GetData
Append
CreateCap
CalcTotalSize
Init
operator
TypedContinuousVector
简介
MutableData
GetData
TensorPlacement
内部关联接口
ge命名空间
Allocator
构造函数和析构函数
Malloc
Free
MallocAdvise
AscendString
构造函数和析构函数
GetString
关系符重载
Find
Hash
GetLength
AttrValue
构造函数和析构函数
CreateFrom
GetValue
AutoMappingSubgraphIOIndexFuncRegister
FrameworkRegistry
构造函数和析构函数
GetAutoMappingSubgraphIOIndexFunc
AddAutoMappingSubgraphIOIndexFunc
InferenceContext
构造函数和析构函数
SetInputHandleShapesAndTypes
SetOutputHandleShapesAndTypes
GetInputHandleShapesAndTypes
GetOutputHandleShapesAndTypes
SetMarks
GetMarks
Create
GetResourceContext
SetResourceContext
RegisterReliedOnResourceKey
AddChangedResourceKey
GetReliedOnResourceKeys
GetChangedResourceKeys
ClearChangedResourceKeys
InferFormatFuncRegister
InferShapeFuncRegister
InferValueRangeFuncRegister
ListTensorType
MemBlock
构造函数和析构函数
GetAddr
GetSize
SetSize
Free
AddCount
SubCount
GetCount
OperatorCreatorRegister
OperatorFactory
CreateOperator
GetOpsTypeList
IsExistOp
Operator
构造函数和析构函数
AddControlInput
BreakConnect
IsEmpty
InferShapeAndType
GetAttr
GetAllAttrNamesAndTypes
GetAllIrAttrNamesAndTypes
GetDynamicInputNum
GetDynamicInputDesc
GetDynamicOutputNum
GetDynamicOutputDesc
GetDynamicSubgraph
GetDynamicSubgraphBuilder
GetInferenceContext
GetInputConstData
GetInputsSize
GetInputDesc
GetName
GetSubgraph
GetSubgraphBuilder
GetSubgraphNamesCount
GetSubgraphNames
GetOpType
GetOutputDesc
GetOutputsSize
SetAttr
SetInput
SetInferenceContext
SetInputAttr
SetOutputAttr
GetInputAttr
GetOutputAttr
TryGetInputDesc
UpdateInputDesc
UpdateOutputDesc
UpdateDynamicInputDesc
UpdateDynamicOutputDesc
VerifyAllAttr
DynamicInputRegister
DynamicInputRegisterByIndex
DynamicOutputRegister
SubgraphCountRegister
SetSubgraphBuilder
OpReceiver
OpRegistrationData
总体说明
构造函数和析构函数
REGISTER_CUSTOM_OP宏
FrameworkType
OriginOpType
ParseParamsFn
ParseParamsByOperatorFn
FusionParseParamsFn
FusionParseParamsFn(Overload)
ParseSubgraphPostFn
ParseOpToGraphFn
ImplyType
DelInputWithCond
DelInputWithOriginalType
GetImplyType
GetOmOptype
GetOriginOpTypeSet
GetFrameworkType
GetParseParamFn
GetParseParamByOperatorFn
GetFusionParseParamFn
GetFusionParseParamByOpFn
GetParseSubgraphPostFn
GetParseOpToGraphFn
AutoMappingFn
AutoMappingByOpFn
AutoMappingFnDynamic
AutoMappingByOpFnDynamic
AutoMappingSubgraphIndex
InputReorderVector
Promote
ShapeAndType
构造函数和析构函数
SetShape
GetShape
SetType
GetDataType
Shape
构造函数和析构函数
GetDim
GetDims
GetDimNum
GetShapeSize
SetDim
TensorDescInfo
TensorDesc
构造函数和析构函数
GetConstData
GetDataType
GetExpandDimsRule
GetFormat
GetName
GetOriginFormat
GetOriginShape
GetPlacement
GetRealDimCnt
GetShape
GetShapeRange
GetSize
SetConstData
SetDataType
SetExpandDimsRule
SetFormat
SetName
SetOriginFormat
SetOriginShape
SetPlacement
SetRealDimCnt
SetSize
SetShape
SetShapeRange
SetUnknownDimNumShape
Update
TensorType
Tensor
构造函数和析构函数
Clone
IsValid
GetData
GetDataType
GetExpandDimsRule
GetFormat
GetOriginFormat
GetOriginShapeDim
GetOriginShapeDimNum
GetPlacement
GetSize
GetShapeDimNum
GetShapeDim
GetTensorDesc
SetData
SetDataType
SetExpandDimsRule
SetFormat
SetOriginFormat
SetOriginShapeDim
SetOriginShapeDimNum
SetPlacement
SetShapeDimNum
SetShapeDim
SetTensorDesc
ResetData
TypeUtils
DataTypeToAscendString
AscendStringToDataType
FormatToAscendString
AscendStringToFormat
DataTypeToSerialString
SerialStringToDataType
FormatToSerialString
SerialStringToFormat
DataFormatToFormat
GetDataTypeLength
VerifyFuncRegister
ConvertToAscendString
ConvertToListAscendString
GetC0Format
GetC0Value
GetFormatFromC0
GetFormatFromSub
GetFormatFromSubAndC0
GetFormatName
GetPrimaryFormat
GetSizeByDataType
GetSizeInBytes
GetSubFormat
HasC0Format
HasSubFormat
ge::graphStatus
DataType
Format
BROADCAST_INFER
COMMON_INFER_FUNC_REG
DECLARE_ERRORNO
ELMTWISE_INFER_SHAPEANDTYPE
IMPLEMT_COMMON_INFERFUNC
IMPLEMT_INFERFORMAT_FUNC
IMPLEMT_INFERFUNC
IMPLEMT_VERIFIER
INFER_FORMAT_FUNC_REG
INFER_FUNC_REG
原型定义接口(REG_OP)
原型定义衍生接口说明
VERIFY_FUNC_REG
错误码
HUAWEI HiAI Engine
Overview
com.huawei.hiai.hiai-engine.huawei-hiai-vision
Introduction
com.huawei.hiai.vision.face
Overview
FaceComparator
FaceDetector
FaceParsing
FaceAttributesDetector
HeadposeDetector
FaceLandMarkDetector
com.huawei.hiai.vision.image
Overview
PoseEstimationDetector
AestheticsScoreDetector
LabelDetector
ImageSuperResolution
SceneDetector
DocRefine
TxtImageSuperResolution
ImageSegmentation
ImageClassifierDetector
com.huawei.hiai.vision.barcode
Overview
BarcodeDetector
com.huawei.hiai.vision.text
Overview
TextDetector
TableDetector
CardDetector
DocConverter
TemplateDetector
com.huawei.hiai.vision.hyperspectral
Overview
Hyperspectrum
Return Codes
com.huawei.hiai.hiai-engine.huawei-hiai-asr
com.huawei.hiai.asr
Overview
AsrListener
AsrConstants
AsrError
AsrEvent
AsrRecognizer
Return Codes
com.huawei.hiai.hiai-engine.huawei-hiai-nlu
com.huawei.hiai.nlu
Overview
NLUAPIService
Return Codes
API参考
CANN
模型管家V2接口
模型Tensor创建类
INDTensorBuffer
INDTensorBuffer
CreateNDTensorBuffer
GetTensorDesc
CreateNDTensorBufferNoCopy
GetSize
CreateNDTensorBuffer
意见反馈
以上内容对您是否有帮助?
意见反馈
如果您有其他疑问,您也可以通过开发者社区问答频道来和我们联系探讨。
社区提问
智能客服提问
在 API参考 中进行搜索
只在 CANN 中搜索
只搜索章节标题
请输入您想要搜索的关键词
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功