24.07
|
Basic function to simulate a 3d convolution. More...
#include <NEConv3D.h>
Public Member Functions | |
NEConv3D () | |
Constructor. More... | |
NEConv3D (const NEConv3D &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConv3D & | operator= (const NEConv3D &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConv3D (NEConv3D &&)=default | |
Default move constructor. More... | |
NEConv3D & | operator= (NEConv3D &&)=default |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEConv3D () | |
Default destructor. More... | |
void | configure (ITensor *input, const ITensor *weights, const ITensor *biases, ITensor *output, const Conv3dInfo &conv_info) |
Set the input and output tensors. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *weights, const ITensorInfo *biases, const ITensorInfo *output, const Conv3dInfo &conv_info) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to simulate a 3d convolution.
This function calls one of the following functions:
Definition at line 43 of file NEConv3D.h.
NEConv3D | ( | ) |
Constructor.
Definition at line 43 of file NEConv3D.cpp.
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default destructor.
void configure | ( | ITensor * | input, |
const ITensor * | weights, | ||
const ITensor * | biases, | ||
ITensor * | output, | ||
const Conv3dInfo & | conv_info | ||
) |
Set the input and output tensors.
Valid data layouts:
Valid data type configurations:
src0 | src1 | src2 | dst |
---|---|---|---|
F16 | F16 | F16 | F16 |
F32 | F32 | F32 | F32 |
QASYMM8 | QASYMM8 | S32 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED | S32 | QASYMM8_SIGNED |
[in] | input | Source tensor. 4 lower dimensions represent a single input [IFM, width, height, depth], while every optional dimension from 5 and above represent a batch of inputs. |
[in] | weights | Weights tensor. Weights are 5D tensor with dimensions [OFM, IFM, kernel_x, kernel_y, kernel_z]. |
[in] | biases | Biases tensor. Shared biases supported. Biases are 1D tensor with dimensions [OFM]. |
[out] | output | Destination tensor. 4 lower dimensions represent a single output [OFM, width, height, depth], while the rest represent batch of outputs. |
[in] | conv_info | Contains padding, stride, acitvation information described in Conv3dInfo. |
Definition at line 49 of file NEConv3D.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, arm_compute::ACL_SRC_2, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_THROW_ON, ARM_COMPUTE_LOG_PARAMS, arm_compute::test::validation::conv_info, ITensor::info(), arm_compute::test::validation::input, and CpuDirectConv3d::validate().
Prevent instances of this class from being copied (As this class contains pointers)
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 80 of file NEConv3D.cpp.
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to NEConv3D::configure()
Definition at line 69 of file NEConv3D.cpp.
References ARM_COMPUTE_RETURN_ON_ERROR, arm_compute::test::validation::conv_info, arm_compute::test::validation::input, and CpuDirectConv3d::validate().