Kernel for the running convolution on a rectangle matrix.
More...
#include <NEConvolutionKernel.h>
Kernel for the running convolution on a rectangle matrix.
- Note
- Supports combinations of 3,5,7 and 9.
Definition at line 200 of file NEConvolutionKernel.h.
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
The size of the border for that kernel.
- Returns
- The width in number of elements of the border.
Reimplemented from IKernel.
void configure |
( |
const ITensor * |
input, |
|
|
ITensor * |
output, |
|
|
const int16_t * |
conv, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
uint32_t |
scale, |
|
|
bool |
border_undefined |
|
) |
| |
Initialise the kernel's input, output and border mode.
- Parameters
-
[in] | input | Source tensor. Data type supported: U8. |
[out] | output | Destination tensor, Data types supported: U8, S16. |
[in] | conv | Convolution matrix to apply to the input tensor. |
[in] | width | Width of convolution matrix (Number of columns) |
[in] | height | Height of convolution matrix (Number of rows) |
[in] | scale | Scale of the convolution matrix. If 0 is passed, it will be set to the sum of the coefficients of the convolution or 1 if they add up to 0. |
[in] | border_undefined | True if the border mode is undefined. False if it's replicate or constant. |
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
void run |
( |
const Window & |
window | ) |
|
|
overridevirtual |
Execute the kernel on the passed window.
- Warning
- If is_parallelisable() returns false then the passed window must be equal to window()
- Note
- The window has to be a region within the window returned by the window() method
-
The width of the window has to be a multiple of num_elems_processed_per_iteration().
- Parameters
-
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
Implements ICPPKernel.
The documentation for this class was generated from the following file: