21.08
|
Basic function to execute flatten layer kernel. More...
#include <NEFlattenLayer.h>
Public Member Functions | |
NEFlattenLayer () | |
~NEFlattenLayer () | |
Destructor. More... | |
NEFlattenLayer (const NEFlattenLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEFlattenLayer (NEFlattenLayer &&) | |
Default move constructor. More... | |
NEFlattenLayer & | operator= (const NEFlattenLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEFlattenLayer & | operator= (NEFlattenLayer &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input, ITensor *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 NEFlattenLayer. More... | |
Basic function to execute flatten layer kernel.
Definition at line 38 of file NEFlattenLayer.h.
NEFlattenLayer | ( | ) |
Definition at line 41 of file NEFlattenLayer.cpp.
References NEFlattenLayer::operator=(), and NEFlattenLayer::~NEFlattenLayer().
|
default |
Destructor.
Referenced by NEFlattenLayer::NEFlattenLayer().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
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 over 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 49 of file NEFlattenLayer.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, arm_compute::auto_init_if_empty(), ICloneable< T >::clone(), arm_compute::misc::shape_calculator::compute_flatten_shape(), ITensor::info(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEFlattenLayer::NEFlattenLayer().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 70 of file NEFlattenLayer.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 NEFlattenLayer.
[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 60 of file NEFlattenLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES, ICloneable< T >::clone(), arm_compute::misc::shape_calculator::compute_flatten_shape(), ITensorInfo::total_size(), and CpuFlatten::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().