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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-10 UTC."],[],[],null,["# DequantizeOp\n\npublic class **DequantizeOp** \nDequantizes a [TensorBuffer](/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) with given `zeroPoint` and `scale`.\n\nNote: The data type of output tensor is always `FLOAT32` except when the DequantizeOp is\ncreated effectively as an identity Op such as setting `zeroPoint` to 0 and `scale` to\n1 (in this case, the output tensor is the same instance as input).\n\nIf both `zeroPoint` and `scale` are 0, the [DequantizeOp](/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/DequantizeOp) will be bypassed,\nwhich is equivalent to setting `zeroPoint` to 0 and `scale` to 1. This can be useful\nwhen passing in the quantization parameters that are extracted directly from the TFLite model\nflatbuffer. If the tensor is not quantized, both `zeroPoint` and `scale` will be read\nas 0.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### Public Constructors\n\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [DequantizeOp](/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/DequantizeOp#DequantizeOp(float,%20float))(float zeroPoint, float scale) |\n\n### Inherited Methods\n\nFrom class [org.tensorflow.lite.support.common.ops.NormalizeOp](/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/NormalizeOp) \n\n|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TensorBuffer](/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) | [apply](/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/NormalizeOp#apply(org.tensorflow.lite.support.tensorbuffer.TensorBuffer))([TensorBuffer](/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) input) Applies the defined normalization on given tensor and returns the result. |\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |\n| final [Class](https://developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface [org.tensorflow.lite.support.common.TensorOperator](/edge/api/tflite/java/org/tensorflow/lite/support/common/TensorOperator) \n\n|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [TensorBuffer](/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) | [apply](/edge/api/tflite/java/org/tensorflow/lite/support/common/TensorOperator#apply(org.tensorflow.lite.support.tensorbuffer.TensorBuffer))([TensorBuffer](/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) input) |\n\nFrom interface [org.tensorflow.lite.support.common.Operator](/edge/api/tflite/java/org/tensorflow/lite/support/common/Operator) \n\n|------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [TensorBuffer](/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) | [apply](/edge/api/tflite/java/org/tensorflow/lite/support/common/Operator#apply(T))([TensorBuffer](/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) x) Applies an operation on a T object, returning a T object. |\n\nPublic Constructors\n-------------------\n\n#### public\n**DequantizeOp**\n(float zeroPoint, float scale)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| zeroPoint | |\n| scale | |\n|-----------|---|"]]