24.02.1
|
Basic function to execute flatten. More...
#include <CLFlattenLayer.h>
Public Member Functions | |
CLFlattenLayer () | |
~CLFlattenLayer () | |
Destructor. More... | |
CLFlattenLayer (const CLFlattenLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLFlattenLayer (CLFlattenLayer &&) | |
Default move constructor. More... | |
CLFlattenLayer & | operator= (const CLFlattenLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLFlattenLayer & | operator= (CLFlattenLayer &&) |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Initialise the kernel's input and output. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output) |
Initialise the kernel's input and output. 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 *output) |
Static function to check if given info will lead to a valid configuration of CLFlattenLayer. More... | |
Basic function to execute flatten.
Definition at line 38 of file CLFlattenLayer.h.
CLFlattenLayer | ( | ) |
Definition at line 45 of file CLFlattenLayer.cpp.
|
default |
Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output | ||
) |
Initialise the kernel's input and output.
[in] | compile_context | The compile context to be used. |
[in] | input | First input tensor to flatten with at least 3 dimensions. The dimensions above the third will be interpreted as batches. Data types supported: All. |
[out] | output | Output tensor with shape [w*h*d, input_batches] where: w = width input tensor, h = height input tensor and d = depth input tensor. Data type supported: same as input |
Definition at line 57 of file CLFlattenLayer.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, arm_compute::auto_init_if_empty(), arm_compute::misc::shape_calculator::compute_flatten_shape(), ITensor::info(), and arm_compute::test::validation::input.
Initialise the kernel's input and output.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[in] | input | First input tensor to flatten with at least 3 dimensions. The dimensions above the third will be interpreted as batches. Data types supported: All. |
[out] | output | Output tensor with shape [w*h*d, input_batches] where: w = width input tensor, h = height input tensor and d = depth input tensor. Data type supported: same as input |
Definition at line 52 of file CLFlattenLayer.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
|
default |
Default move assignment operator.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 81 of file CLFlattenLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
|
static |
Static function to check if given info will lead to a valid configuration of CLFlattenLayer.
[in] | input | First input tensor to flatten with at least 3 dimensions. The dimensions above the third will be interpreted as batches. Data types supported: All. |
[out] | output | Output tensor with shape [w*h*d, input_batches] where: w = width input tensor, h = height input tensor and d = depth input tensor. Data type supported: same as input |
Definition at line 69 of file CLFlattenLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES, arm_compute::misc::shape_calculator::compute_flatten_shape(), arm_compute::test::validation::input, ITensorInfo::total_size(), and ClFlatten::validate().