tf.raw_ops.QuantizedConv2D
Stay organized with collections
Save and categorize content based on your preferences.
Computes a 2D convolution given quantized 4D input and filter tensors.
tf.raw_ops.QuantizedConv2D(
input,
filter,
min_input,
max_input,
min_filter,
max_filter,
strides,
padding,
out_type=tf.dtypes.qint32
,
dilations=[1, 1, 1, 1],
name=None
)
The inputs are quantized tensors where the lowest value represents the real
number of the associated minimum, and the highest represents the maximum.
This means that you can only interpret the quantized output in the same way, by
taking the returned minimum and maximum values into account.
Args |
input
|
A Tensor . Must be one of the following types: qint8 , quint8 , qint32 , qint16 , quint16 .
|
filter
|
A Tensor . Must be one of the following types: qint8 , quint8 , qint32 , qint16 , quint16 .
filter's input_depth dimension must match input's depth dimensions.
|
min_input
|
A Tensor of type float32 .
The float value that the lowest quantized input value represents.
|
max_input
|
A Tensor of type float32 .
The float value that the highest quantized input value represents.
|
min_filter
|
A Tensor of type float32 .
The float value that the lowest quantized filter value represents.
|
max_filter
|
A Tensor of type float32 .
The float value that the highest quantized filter value represents.
|
strides
|
A list of ints .
The stride of the sliding window for each dimension of the input
tensor.
|
padding
|
A string from: "SAME", "VALID" .
The type of padding algorithm to use.
|
out_type
|
An optional tf.DType from: tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16 . Defaults to tf.qint32 .
|
dilations
|
An optional list of ints . Defaults to [1, 1, 1, 1] .
1-D tensor of length 4. The dilation factor for each dimension of
input . If set to k > 1, there will be k-1 skipped cells between each
filter element on that dimension. The dimension order is determined by the
value of data_format , see above for details. Dilations in the batch and
depth dimensions must be 1.
|
name
|
A name for the operation (optional).
|
Returns |
A tuple of Tensor objects (output, min_output, max_output).
|
output
|
A Tensor of type out_type .
|
min_output
|
A Tensor of type float32 .
|
max_output
|
A Tensor of type float32 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.raw_ops.QuantizedConv2D\n\n\u003cbr /\u003e\n\nComputes a 2D convolution given quantized 4D input and filter tensors.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.QuantizedConv2D`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/QuantizedConv2D)\n\n\u003cbr /\u003e\n\n tf.raw_ops.QuantizedConv2D(\n input,\n filter,\n min_input,\n max_input,\n min_filter,\n max_filter,\n strides,\n padding,\n out_type=../../tf/dtypes#qint32,\n dilations=[1, 1, 1, 1],\n name=None\n )\n\nThe inputs are quantized tensors where the lowest value represents the real\nnumber of the associated minimum, and the highest represents the maximum.\nThis means that you can only interpret the quantized output in the same way, by\ntaking the returned minimum and maximum values into account.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `input` | A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`. |\n| `filter` | A `Tensor`. Must be one of the following types: `qint8`, `quint8`, `qint32`, `qint16`, `quint16`. filter's input_depth dimension must match input's depth dimensions. |\n| `min_input` | A `Tensor` of type `float32`. The float value that the lowest quantized input value represents. |\n| `max_input` | A `Tensor` of type `float32`. The float value that the highest quantized input value represents. |\n| `min_filter` | A `Tensor` of type `float32`. The float value that the lowest quantized filter value represents. |\n| `max_filter` | A `Tensor` of type `float32`. The float value that the highest quantized filter value represents. |\n| `strides` | A list of `ints`. The stride of the sliding window for each dimension of the input tensor. |\n| `padding` | A `string` from: `\"SAME\", \"VALID\"`. The type of padding algorithm to use. |\n| `out_type` | An optional [`tf.DType`](../../tf/dtypes/DType) from: `tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16`. Defaults to [`tf.qint32`](../../tf#qint32). |\n| `dilations` | An optional list of `ints`. Defaults to `[1, 1, 1, 1]`. 1-D tensor of length 4. The dilation factor for each dimension of `input`. If set to k \\\u003e 1, there will be k-1 skipped cells between each filter element on that dimension. The dimension order is determined by the value of `data_format`, see above for details. Dilations in the batch and depth dimensions must be 1. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|--------------|--------------------------------|\n| A tuple of `Tensor` objects (output, min_output, max_output). ||\n| `output` | A `Tensor` of type `out_type`. |\n| `min_output` | A `Tensor` of type `float32`. |\n| `max_output` | A `Tensor` of type `float32`. |\n\n\u003cbr /\u003e"]]