GLES Compute kernel to perform reshaping on the weights used by convolution and locally connected layer.
More...
|
| GCWeightsReshapeKernel () |
| Constructor. More...
|
|
| GCWeightsReshapeKernel (const GCWeightsReshapeKernel &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers) More...
|
|
GCWeightsReshapeKernel & | operator= (const GCWeightsReshapeKernel &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers) More...
|
|
| GCWeightsReshapeKernel (GCWeightsReshapeKernel &&)=default |
| Allow instances of this class to be moved. More...
|
|
GCWeightsReshapeKernel & | operator= (GCWeightsReshapeKernel &&)=default |
| Allow instances of this class to be moved. More...
|
|
| ~GCWeightsReshapeKernel ()=default |
| Default destructor. More...
|
|
void | configure (const IGCTensor *input, const IGCTensor *biases, IGCTensor *output) |
| Set the input and output of the kernel. More...
|
|
void | run (const Window &window) override |
| Enqueue the OpenGL ES shader to process the given window. More...
|
|
| IGCKernel () |
| Constructor. More...
|
|
GCKernel & | kernel () |
| Returns a reference to the GLES kernel of this object. More...
|
|
void | add_1D_tensor_argument (unsigned int &idx, const IGCTensor *tensor, const unsigned int binding_point, const Window &window) |
| Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
|
|
void | add_2D_tensor_argument (unsigned int &idx, const IGCTensor *tensor, const unsigned int binding_point, const Window &window) |
| Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
|
|
void | add_3D_tensor_argument (unsigned int &idx, const IGCTensor *tensor, const unsigned int binding_point, const Window &window) |
| Add the passed 3D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
|
|
unsigned int | num_arguments_per_1D_tensor () const |
| Returns the number of arguments enqueued per 1D tensor object. More...
|
|
unsigned int | num_arguments_per_2D_tensor () const |
| Returns the number of arguments enqueued per 2D tensor object. More...
|
|
unsigned int | num_arguments_per_3D_tensor () const |
| Returns the number of arguments enqueued per 3D tensor object. More...
|
|
void | set_lws_hint (gles::NDRange &lws_hint) |
| Set the Local-Workgroup-Size hint. More...
|
|
void | set_target (GPUTarget target) |
| Set the targeted GPU architecture. More...
|
|
GPUTarget | get_target () const |
| Get the targeted GPU architecture. More...
|
|
| 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...
|
|
GLES Compute kernel to perform reshaping on the weights used by convolution and locally connected layer.
Rearranges each 3-dimensional kernel to a single row leading to a matrix with linearized kernels. In combination with the GCIm2ColKernel can transform a convolution to a matrix multiplication.
For example assuming a 3D weight kernel of 3x3 dimensions and depth of 2 we have:
\[ \left( \begin{array}{ccc} a000 & a001 & a002 \\ a010 & a011 & a012 \\ a020 & a021 & a022 \\ \end{array} \right) \left( \begin{array}{ccc} a100 & a101 & a102 \\ a110 & a111 & a112 \\ a120 & a121 & a122 \\ \end{array} \right) \rightarrow \left( \begin{array}{ccccccccc} a000 & a001 & a002 & a010 & a011 & a012 & a020 & a021 & a022 & a100 & a101 & a102 & a110 & a111 & a112 & a120 & a121 & a122 \\ \end{array} \right) \]
Definition at line 54 of file GCWeightsReshapeKernel.h.