GetOriginShape
Function Usage
Obtains the original shape of a tensor.
Prototype
1 | const Shape &GetOriginShape() const |
Parameters
None
Returns
Reference to the read-only original shape.
For details about the definition of the shape type, see Shape.
Constraints
None
Examples
1 2 3 | StorageShape sh({1, 2, 3}, {2, 1, 3}); TensorV2 t = {sh, {ge::FORMAT_ND, ge::FORMAT_FRACTAL_NZ, {}}, kOnHost, ge::DT_FLOAT, nullptr}; auto shape = t.GetOriginShape(); // 1,2,3 |
Parent topic: TensorV2