shape property

List<int> shape

Dimensions of the tensor.

Implementation

List<int> get shape => List.generate(
    tfliteBinding.TfLiteTensorNumDims(_tensor),
    (i) => tfliteBinding.TfLiteTensorDim(_tensor, i));