#include <nn_ops.h>
Computes a 2D convolution given quantized 4D input and filter tensors.
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.
Arguments:
Optional attributes (see Attrs
):
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.Returns:
Output
outputOutput
min_output: The float value that the lowest quantized output value represents.Output
max_output: The float value that the highest quantized output value represents. Constructors and Destructors | |
---|---|
QuantizedConv2D(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, ::tensorflow::Input min_input, ::tensorflow::Input max_input, ::tensorflow::Input min_filter, ::tensorflow::Input max_filter, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
QuantizedConv2D(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, ::tensorflow::Input min_input, ::tensorflow::Input max_input, ::tensorflow::Input min_filter, ::tensorflow::Input max_filter, const gtl::ArraySlice< int > & strides, StringPiece padding, const QuantizedConv2D::Attrs & attrs) |
Public attributes | |
---|---|
max_output | |
min_output | |
output |
Public static functions | |
---|---|
Dilations(const gtl::ArraySlice< int > & x) | |
OutType(DataType x) |
Structs | |
---|---|
tensorflow::ops::QuantizedConv2D::Attrs | Optional attribute setters for QuantizedConv2D. |
::tensorflow::Output max_output
::tensorflow::Output min_output
::tensorflow::Output output
QuantizedConv2D( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, ::tensorflow::Input min_input, ::tensorflow::Input max_input, ::tensorflow::Input min_filter, ::tensorflow::Input max_filter, const gtl::ArraySlice< int > & strides, StringPiece padding )
QuantizedConv2D( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, ::tensorflow::Input min_input, ::tensorflow::Input max_input, ::tensorflow::Input min_filter, ::tensorflow::Input max_filter, const gtl::ArraySlice< int > & strides, StringPiece padding, const QuantizedConv2D::Attrs & attrs )
Attrs Dilations( const gtl::ArraySlice< int > & x )
Attrs OutType( DataType x )
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/quantized-conv2-d.html