getBuffer method
Returns a ByteBuffer representation of 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.
It's essentially a short cut for getTensorBuffer.getBuffer()
.
Throws StateError if the TensorImage never loads data.
Implementation
ByteBuffer getBuffer() => buffer;