ByteConversionUtils class
Converts values between Dart objects and TensorFlow Lite tensor bytes.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
bytesToFloat32(
Uint8List bytes) → double - Decodes two little-endian half-precision float bytes to a Dart double.
-
convertBytesToObject(
Uint8List bytes, TensorType tensorType, List< int> shape) → Object -
Decodes tensor
bytesinto an object with the givenshape. -
convertObjectToBytes(
Object o, TensorType tensorType) → Uint8List - Encodes a supported value or nested list as tensor bytes.
-
decodeTFStrings(
Uint8List bytes) → List< String> - Decodes the TensorFlow Lite string tensor buffer into its strings.
-
floatToFloat16Bytes(
double value) → Uint8List -
Encodes
valueas a little-endian IEEE 754 half-precision float.