Compute Library
18.05
|
Interface for the depthwise im2col reshape kernel. More...
#include <NEDepthwiseIm2ColKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEDepthwiseIm2ColKernel () | |
Default constructor. More... | |
NEDepthwiseIm2ColKernel (const NEDepthwiseIm2ColKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEDepthwiseIm2ColKernel & | operator= (const NEDepthwiseIm2ColKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEDepthwiseIm2ColKernel (NEDepthwiseIm2ColKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEDepthwiseIm2ColKernel & | operator= (NEDepthwiseIm2ColKernel &&)=default |
Allow instances of this class to be moved. More... | |
void | configure (const ITensor *input, ITensor *output, const Size2D &kernel_dims, const PadStrideInfo &conv_info, bool has_bias=false, unsigned int depth_multiplier=1) |
Set the input and output of the kernel. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
virtual BorderSize | border_size () const |
The size of the border for that kernel. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
Interface for the depthwise im2col reshape kernel.
This kernel reshape the input low 3 dimensions to a new 3D shape where the output's first dimension is the linear patch size (FILTER_WIDTH * FILTER_HEIGHT) and second dimension is number of patches in per image and third dimension unchanged .
Definition at line 38 of file NEDepthwiseIm2ColKernel.h.
Default constructor.
Referenced by NEDepthwiseIm2ColKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const Size2D & | kernel_dims, | ||
const PadStrideInfo & | conv_info, | ||
bool | has_bias = false , |
||
unsigned int | depth_multiplier = 1 |
||
) |
Set the input and output of the kernel.
[in] | input | The input tensor to convert. 3 lower dimensions represent a single input [width, height, IFM], while every optional dimension from 4 and above represent a batch of inputs. Data types supported: QASYMM8, F32 |
[out] | output | The output tensor. First 3 lower dimensions represent a transform of each 3D input, while every dimension above 3 represents a batch. Data types supported: Same as input |
[in] | kernel_dims | The kernel dimensions (width and height). |
[in] | conv_info | Contains padding and stride information described in PadStrideInfo. |
[in] | has_bias | Boolean that specifies if the depthwise convolution has bias. |
[in] | depth_multiplier | (Optional) Multiplier to apply to the input's depth in order to retrieve the output's depth. Defaults to 1. |
Referenced by NEDepthwiseIm2ColKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 41 of file NEDepthwiseIm2ColKernel.h.
References NEDepthwiseIm2ColKernel::configure(), arm_compute::test::validation::conv_info, arm_compute::test::validation::info(), NEDepthwiseIm2ColKernel::NEDepthwiseIm2ColKernel(), NEDepthwiseIm2ColKernel::operator=(), NEDepthwiseIm2ColKernel::run(), and IKernel::window().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEDepthwiseIm2ColKernel::name().
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Implements ICPPKernel.
Referenced by NEDepthwiseIm2ColKernel::name().