shape
The shape descriptor that defines the dimensionality and size of this tensor data.
The shape property provides essential metadata about the tensor's structure, including the number of dimensions and the size along each dimension. This information is crucial for:
Bounds checking during element access
Memory layout calculations
Broadcasting operations
Tensor operation compatibility verification
Return
the Shape object describing this tensor's dimensional structure