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; // Obtained from conversion via uint64_t aclprofStr2Id(const char *message) uint64_t opTypeId; uint32_t resv; uint32_t tensorNum; uint32_t kernelType; uint32_t blockNums; void *stream; // Stream information aclprofTensor *tensors; } aclprofTensorInfo; typedef struct { uint32_t type; // Tensor type. 0: input; 1: output uint32_t format; // Format type: aclFormat uint32_t dataType; // dataType type: aclDataType uint32_t shapeDim; // shape dim <= 8 uint32_t shape[8]; // Tensor memory size }aclprofTensor; typedef enum{ MESSAGE_TYPE_TENSOR_INFO = 0 }ProfMessageType; |
Parent topic: Data Types and Operation APIs