TfliteQuantization class

Quantization parameters of a tensor: real = (quantized - zeroPoint) * scale.

Annotations

Constructors

TfliteQuantization({required double scale, required int zeroPoint})
Creates quantization parameters.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
Step between two adjacent quantized values.
final
zeroPoint → int
Quantized value that represents real zero.
final

Methods

dequantize(int value) → double
Converts a quantized value to its real value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
quantize(double value) → int
Converts a real value to the nearest quantized value, without clamping it to the tensor type's range.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited