Skip to main content

aclComputeType

aclrtEventStatus

typedef enum aclrtEventStatus {
ACL_EVENT_STATUS_COMPLETE = 0, //完成
ACL_EVENT_STATUS_NOT_READY = 1, //未完成
ACL_EVENT_STATUS_RESERVED = 2, //预留
} aclrtEventStatus;

父主题: 数据类型及其操作接口

aclrtRunMode

typedef enum aclrtRunMode {
ACL_DEVICE, //昇腾AI软件栈运行在Device的Control CPU或板端环境上
ACL_HOST, //昇腾AI软件栈运行在Host侧
} aclrtRunMode;

父主题: 数据类型及其操作接口

aclTransType

typedef enum aclTransType
{
ACL_TRANS_N, //不转置,默认为不转置
ACL_TRANS_T, //转置
ACL_TRANS_NZ, //内部格式,能够提供更好的接口性能,建议使用场景为:某个输入矩阵作为底库,执行一次转NZ格式的操作后,多次使用NZ格式的算子,提升性能。
ACL_TRANS_NZ_T //内部格式转置,当前不支持
}aclTransType;

父主题: 数据类型及其操作接口

aclComputeType

typedef enum aclComputeType
{
ACL_COMPUTE_HIGH_PRECISION,
ACL_COMPUTE_LOW_PRECISION //当前不支持
}aclComputeType;

父主题: 数据类型及其操作接口

aclfvSearchType

Atlas 200/500 A2推理产品,不支持该枚举值。

enum aclfvSearchType {
SEARCH_1_N, // 1:N operation type
SEARCH_N_M // N:M operation type
};

父主题: 数据类型及其操作接口

aclAippInputFormat

静态AIPP和动态AIPP支持的图片格式不同,详情如下:

typedef enum
{
ACL_YUV420SP_U8 = 1, //YUV420SP_U8,静态AIPP和动态AIPP都支持
ACL_XRGB8888_U8=2, //XRGB8888_U8,静态AIPP和动态AIPP都支持
ACL_RGB888_U8=3, //RGB888_U8,静态AIPP和动态AIPP都支持
ACL_YUV400_U8=4, //YUV400_U8,静态AIPP和动态AIPP都支持
ACL_NC1HWC0DI_FP16 = 5;//暂不支持
ACL_NC1HWC0DI_S8 = 6;//暂不支持
ACL_ARGB8888_U8 = 7; //暂不支持
ACL_YUYV_U8 = 8; //暂不支持
ACL_YUV422SP_U8 = 9; //暂不支持
ACL_AYUV444_U8 = 10; // 暂不支持
ACL_RAW10 = 11; //暂不支持
ACL_RAW12 = 12; //暂不支持
ACL_RAW16 = 13; //暂不支持
ACL_RAW24 = 14; //暂不支持
ACL_AIPP_RESERVED = 0xffff,
} aclAippInputFormat;

父主题: 数据类型及其操作接口

aclAippInfo

typedef struct aclAippInfo {
aclAippInputFormat inputFormat;
int32_t srcImageSizeW;
int32_t srcImageSizeH;
int8_t cropSwitch;
int32_t loadStartPosW;
int32_t loadStartPosH;
int32_t cropSizeW;
int32_t cropSizeH;
int8_t resizeSwitch;
int32_t resizeOutputW;
int32_t resizeOutputH;
int8_t paddingSwitch;
int32_t leftPaddingSize;
int32_t rightPaddingSize;
int32_t topPaddingSize;
int32_t bottomPaddingSize;
int8_t cscSwitch;
int8_t rbuvSwapSwitch;
int8_t axSwapSwitch;
int8_t singleLineMode;
int32_t matrixR0C0;
int32_t matrixR0C1;
int32_t matrixR0C2;
int32_t matrixR1C0;
int32_t matrixR1C1;
int32_t matrixR1C2;
int32_t matrixR2C0;
int32_t matrixR2C1;
int32_t matrixR2C2;
int32_t outputBias0;
int32_t outputBias1;
int32_t outputBias2;
int32_t inputBias0;
int32_t inputBias1;
int32_t inputBias2;
int32_t meanChn0;
int32_t meanChn1;
int32_t meanChn2;
int32_t meanChn3;
float minChn0;
float minChn1;
float minChn2;
float minChn3;
float varReciChn0;
float varReciChn1;
float varReciChn2;
float varReciChn3;
aclFormat srcFormat; //模型转换前,原始模型的输入format
aclDataType srcDatatype; //模型转换前,原始模型的输入datatype
size_t srcDimNum; //模型转换前,原始模型输入dims
size_t shapeCount; //动态Shape(动态Batch或动态分辨率)场景下的档位数
aclAippDims outDims[ACL_MAX_SHAPE_COUNT]; //在多shape模型下,各个分档对应的aipp输出dims信息,需要在模型编译阶段按照shape推导出来,保存在模型中,输出的Format,datatype、输出dims等不随shape变化而变化
aclAippExtendInfo *aippExtend; //预留参数,当前版本用户必须传入空指针
} aclAippInfo;

父主题: 数据类型及其操作接口

在线提单