shape property

List<int> get shape

Dimensions of the tensor.

Implementation

List<int> get shape => List.generate(
    tfLiteTensorNumDims(_tensor), (i) => tfLiteTensorDim(_tensor, i));