Link Search Menu Expand Document

QuantizedConv2D


tensorflow C++ API

tensorflow::ops::QuantizedConv2D

Computes a 2D convolution given quantized 4D input and filter tensors.


Summary

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:

  • scope: A Scope object
  • filter: filter’s input_depth dimension must match input’s depth dimensions.
  • min_input: The float value that the lowest quantized input value represents.
  • max_input: The float value that the highest quantized input value represents.
  • min_filter: The float value that the lowest quantized filter value represents.
  • max_filter: The float value that the highest quantized filter value represents.
  • strides: The stride of the sliding window for each dimension of the input tensor.
  • padding: The type of padding algorithm to use.

Returns:

  • Outputoutput
  • Outputmin_output: The float value that the lowest quantized output value represents.
  • Outputmax_output: The float value that the highest quantized output value represents.

QuantizedConv2D block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_nn.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input filter: connect Input node.
  • Input min_input: connect Input node.
  • Input max_input: connect Input node.
  • Input min_filter: connect Input node.
  • Input max_filter: connect Input node.
  • ArraySlice< int> strides: input ksize in values. ex)1,4,3,2,1
  • stringpiece padding: input padding in value. ex)SAME

Return:

  • Output output: Output object of QuantizedConv2D class object.
  • Output min_output: Output object of QuantizedConv2D class object.
  • Output max_output: Output object of QuantizedConv2D class object.

Result:

  • std::vector(Tensor) result_output : Returned object of executed result by calling session.
  • std::vector(Tensor) result_min_output : Returned object of executed result by calling session.
  • std::vector(Tensor) result_max_output : Returned object of executed result by calling session.

Using Method