GetStorageShape

Description

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].

For details about gert::Shape, see gert::Shape in Basic Data Structures and APIs.

Constraints

None.

Example

1
2
3
void Func(const aclTensor *input) {
    auto shape = input->GetStorageShape();
}