简介
本文档主要描述Operator相关接口,您可以在CANN软件安装后文件存储路径>“include”路径查看对应接口的头文件。
接口分类 |
头文件 |
接口列表 |
---|---|---|
AscendString类 |
/include/graph/ascend_string.h |
AscendString构造函数和析构函数 |
GetString |
||
关系符重载 |
||
Find |
||
Hash |
||
GetLength |
||
Operator类 |
/include/graph/operator.h |
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 |
||
Tensor类 |
/include/graph/tensor.h |
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 |
||
TensorDesc类 |
/include/graph/tensor.h |
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 |
||
Shape类 |
/include/graph/tensor.h |
Shape构造函数和析构函数 |
GetDim |
||
GetDims |
||
GetDimNum |
||
GetShapeSize |
||
SetDim |
||
AttrValue类 |
/include/graph/attr_value.h |
AttrValue构造函数和析构函数 |
CreateFrom |
||
GetValue |
||
Memblock类 |
/include/ge/ge_allocator.h |
MemBlock构造函数和析构函数 |
GetAddr |
||
GetSize |
||
SetSize |
||
Free |
||
AddCount |
||
SubCount |
||
GetCount |
||
Allocator类 |
/include/ge/ge_allocator.h |
Allocator构造函数和析构函数 |
Malloc |
||
Free |
||
MallocAdvise |
||
数据类型和枚举值 |
/include/graph/types.h |
Format |
DataType |
||
TensorType |
||
TensorDescInfo |
||
GetSizeByDataType |
||
GetFormatName |
||
GetFormatFromSub |
||
GetPrimaryFormat |
||
GetSubFormat |
||
HasSubFormat |
||
HasC0Format |
||
GetC0Format |
||
GetC0Value |
||
GetSizeInBytes |
||
GetFormatFromC0 |
||
GetFormatFromSubAndC0 |
||
ListTensorType |
||
Promote |