DequantizeOp class
Dequantizes a TensorBuffer with given zeroPoint
and scale
.
Note: The data type of output tensor is always FLOAT32
except when the DequantizeOp is
created effectively as an identity Op such as setting zeroPoint
to 0 and scale
to
1 (in this case, the output tensor is the same instance as input).
If both zeroPoint
and scale
are 0, the DequantizeOp will be bypassed,
which is equivalent to setting zeroPoint
to 0 and scale
to 1. This can be useful
when passing in the quantization parameters that are extracted directly from the TFLite model
flatbuffer. If the tensor is not quantized, both zeroPoint
and scale
will be read
as 0.
- Inheritance
-
- Object
- NormalizeOp
- DequantizeOp
- Implemented types
Constructors
- DequantizeOp(double zeroPoint, double scale)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isIdentityOp ↔ bool
-
getter/setter pairinherited
-
mean
↔ List<
double> -
getter/setter pairinherited
- numChannels ↔ int
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stddev
↔ List<
double> -
getter/setter pairinherited
Methods
-
apply(
TensorBuffer input) → TensorBuffer -
Applies the defined normalization on given
input
tensor and returns the result.inherited -
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