tensorBuffer property

TensorBuffer tensorBuffer

Returns the underlying TensorBuffer representation for this TensorImage

Important: It's only a reference. DO NOT MODIFY. We don't create a copy here for performance concern, but if modification is necessary, please make a copy.

Throws ArgumentError if this TensorImage never loads data.

Implementation

TensorBuffer get tensorBuffer {
  if (_container == null) {
    throw new StateError("No image has been loaded yet.");
  }
  return _container!.getTensorBuffer(_tfLiteType);
}