shape property

List<int> get shape

Dimensions of the tensor.

Implementation

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