doc-ai / tensorio-android

TensorIO for Android
2 stars 6 forks source link

Support for byte type outputs #147

Closed phildow closed 4 years ago

phildow commented 4 years ago

Just return the ByteBuffer or a copy of it, no transforms, or the transformer copies it or possibly applies quantization or dequantization. Don't recall what the spec supports.

phildow commented 4 years ago

This is equivalent to the output.string type already named in the specification:

https://github.com/doc-ai/tensorio/blob/master/schemas/v0.9.5/tflite/schema.json

Returns uint8 or float32 so we would return the ByteBuffer directly or take a Float32 view on it.