public class **QuantizeOp** Quantizes a `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer` with given `zeroPoint` and `scale`.

Note: `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/QuantizeOp` does not cast output to UINT8, but only performs the quantization
math on top of input. The data type of output tensor is always `FLOAT32` except that the Op
is effectively an identity Op (in this case, the output tensor is the same instance as the
input). To connect with quantized model, a `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/CastOp` is probably needed.

If both `zeroPoint` and `scale` are 0, the `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/QuantizeOp` 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.

<br />

<br />

### Public Constructors

|---|---|
|   | [QuantizeOp](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/QuantizeOp#QuantizeOp(float,%20float))(float zeroPoint, float scale) |

### Inherited Methods

From class [org.tensorflow.lite.support.common.ops.NormalizeOp](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/NormalizeOp)

|---|---|
| [TensorBuffer](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) | [apply](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/ops/NormalizeOp#apply(org.tensorflow.lite.support.tensorbuffer.TensorBuffer))([TensorBuffer](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) input) Applies the defined normalization on given tensor and returns the result. |

From class java.lang.Object

|---|---|
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface [org.tensorflow.lite.support.common.TensorOperator](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/TensorOperator)

|---|---|
| abstract [TensorBuffer](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) | [apply](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/TensorOperator#apply(org.tensorflow.lite.support.tensorbuffer.TensorBuffer))([TensorBuffer](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) input) |

From interface [org.tensorflow.lite.support.common.Operator](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/Operator)

|---|---|
| abstract [TensorBuffer](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) | [apply](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/Operator#apply(T))([TensorBuffer](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/tensorbuffer/TensorBuffer) x) Applies an operation on a T object, returning a T object. |

## Public Constructors

#### public
**QuantizeOp**
(float zeroPoint, float scale)

<br />

##### Parameters

| zeroPoint |   |
| scale |   |
|---|---|