# UniformQuantizedClipByValue

public final class **UniformQuantizedClipByValue** Perform clip by value on the quantized Tensor \`operand\`.


Given quantized \`operand\` which was quantized using \`scales\` and \`zero_points\`, performs clip by value using \`min\` and \`max\` values.
If quantization_axis is -1 (per-tensor quantized), the entire operand is clipped using scalar min, max.
Otherwise (per-channel quantized), the clipping is also done per-channel.

<br />

### Nested Classes

|---|---|---|---|
| class | [UniformQuantizedClipByValue.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue.Options) || Optional attributes for `https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue` |

### Public Methods

|---|---|
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [asOutput](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue#asOutput())() Returns the symbolic handle of a tensor. |
| static \<T\> [UniformQuantizedClipByValue](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue)\<T\> | [create](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue#create(org.tensorflow.op.Scope,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<java.lang.Float>,%20org.tensorflow.Operand<java.lang.Integer>,%20java.lang.Long,%20java.lang.Long,%20org.tensorflow.op.core.UniformQuantizedClipByValue.Options...))([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> operand, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> min, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> max, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<Float\> scales, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<Integer\> zeroPoints, Long quantizationMinVal, Long quantizationMaxVal, [Options...](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue.Options) options) Factory method to create a class wrapping a new UniformQuantizedClipByValue operation. |
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [output](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue#output())() The output clipped Tensor of T, whose shape is same as operand. |
| static [UniformQuantizedClipByValue.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue.Options) | [quantizationAxis](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue#quantizationAxis(java.lang.Long))(Long quantizationAxis) |

### Inherited Methods

From class [org.tensorflow.op.PrimitiveOp](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp)

|---|---|
| final boolean | [equals](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#equals(java.lang.Object))(Object obj) |
| final int | [hashCode](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#hashCode())() |
| [Operation](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation) | [op](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#op())() Returns the underlying `https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation` |
| final String | [toString](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#toString())() |

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface [org.tensorflow.Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)

|---|---|
| abstract [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [asOutput](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand#asOutput())() Returns the symbolic handle of a tensor. |

## Public Methods

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**asOutput**
()

Returns the symbolic handle of a tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is
used to obtain a symbolic handle that represents the computation of the input.

<br />

#### public static [UniformQuantizedClipByValue](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue)\<T\>
**create**
([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> operand, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> min, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> max, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<Float\> scales, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<Integer\> zeroPoints, Long quantizationMinVal, Long quantizationMaxVal, [Options...](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue.Options) options)

Factory method to create a class wrapping a new UniformQuantizedClipByValue operation.

##### Parameters

| scope | current scope |
| operand | Must be a Tensor of T. |
| min | The min value(s) to clip operand. Must be a Tensor of T. Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). |
| max | The min value(s) to clip operand. Must be a Tensor of T. Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). |
| scales | The float value(s) used as scale(s) when quantizing \`operand\`, \`min\` and \`max\`. Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). |
| zeroPoints | The int32 value(s) used as zero_point(s) when quantizing \`operand\`, \`min\` and \`max\`. Same shape condition as scales. |
| quantizationMinVal | The quantization min value that was used when operand was quantized. |
| quantizationMaxVal | The quantization max value that was used when operand was quantized. |
| options | carries optional attributes values |
|---|---|

##### Returns

- a new instance of UniformQuantizedClipByValue

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**output**
()

The output clipped Tensor of T, whose shape is same as operand.

#### public static [UniformQuantizedClipByValue.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/UniformQuantizedClipByValue.Options)
**quantizationAxis**
(Long quantizationAxis)

<br />

##### Parameters

| quantizationAxis | Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range \[0, operand.dims()). |
|---|---|