GetStorageShape
Function Usage
Obtains the StorageShape attribute of an aclTensor.
StorageShape indicates the actual layout of the aclTensor in the memory, that is, the actual shape format of OriginShape.
Prototype
gert::Shape GetStorageShape()
Parameters
None
Returns
gert::Shape, which records a group of shape information, for example, a 3D shape [10, 20, 30].
Constraints
None
Examples
1 2 3 |
void Func(const aclTensor *input) { auto shape = input->GetStorageShape(); } |
Parent topic: common_types
