aclprofEventAttributes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | typedef struct { uint16_t version; uint16_t size; uint32_t messageType; // MESSAGE_TYPE_TENSOR_INFO union Message { aclprofTensorInfo *tensorInfo; } message; } aclprofEventAttributes; typedef struct { uint64_t opNameId; // 通过uint64_t aclprofStr2Id(const char *message)转换 uint64_t opTypeId; uint32_t resv; uint32_t tensorNum; uint32_t kernelType; uint32_t blockNums; void *stream; // stream信息 aclprofTensor *tensors; } aclprofTensorInfo; typedef struct { uint32_t type; // tensor类型,0: input, 1: output uint32_t format; // format类型: aclFormat uint32_t dataType; // dataType类型 aclDataType uint32_t shapeDim; // shape dim <= 8 uint32_t shape[8]; // tensor内存大小 }aclprofTensor; typedef enum{ MESSAGE_TYPE_TENSOR_INFO = 0 }ProfMessageType; |
父主题: 数据类型及其操作接口