Compute Library
18.05
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | dequantization_layer (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_stride_z, uint input_step_z, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_stride_z, uint output_step_z, uint output_offset_first_element_in_bytes, __global uchar *min_max_ptr, uint min_max_stride_x, uint min_max_step_x, uint min_max_offset_first_element_in_bytes) |
This performs the dequantization of 8-bit unsigned integers to floating point. More... | |
__kernel void dequantization_layer | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_stride_z, | ||
uint | input_step_z, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | output_ptr, | ||
uint | output_stride_x, | ||
uint | output_step_x, | ||
uint | output_stride_y, | ||
uint | output_step_y, | ||
uint | output_stride_z, | ||
uint | output_step_z, | ||
uint | output_offset_first_element_in_bytes, | ||
__global uchar * | min_max_ptr, | ||
uint | min_max_stride_x, | ||
uint | min_max_step_x, | ||
uint | min_max_offset_first_element_in_bytes | ||
) |
This performs the dequantization of 8-bit unsigned integers to floating point.
[in] | input_ptr | Pointer to the source image. Supported data types: QS8/QS16/F16/F32 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | input_step_z | input_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported data types: same as input_ptr |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | output_step_z | output_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | min_max_ptr | Pointer to the min/max vector. Minimum value in position 0, maximum value in position 1. Suppported data types: F32. |
[in] | min_max_stride_x | Stride of the min/max vector in X dimension (in bytes) |
[in] | min_max_step_x | min_max_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | min_max_offset_first_element_in_bytes | The offset of the first element in the min/max vector |
Definition at line 49 of file dequantization_layer.cl.
References CONVERT_TO_TENSOR3D_STRUCT, CONVERT_TO_VECTOR_STRUCT, Vector::ptr, Tensor3D::ptr, arm_compute::test::validation::scale, and arm_compute::wrapper::vmin().