Interface for the kernel to run the derivative along the X/Y directions on a tensor.
More...
#include <NEDerivativeKernel.h>
Interface for the kernel to run the derivative along the X/Y directions on a tensor.
Definition at line 36 of file NEDerivativeKernel.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.
Initialise the kernel's sources, destination and border.
- Note
- At least one of output_x or output_y must be set
- Parameters
-
[in] | input | Source tensor. Data type supported: U8. |
[out] | output_x | (Optional) Destination tensor for the X gradient. Data type supported: S16. |
[out] | output_y | (Optional) Destination tensor for the Y gradient. Data type supported: S16. |
[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: