21.05
|
Basic function to execute flatten layer kernel. More...
#include <NEFlattenLayer.h>
Public Member Functions | |
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 37 of file NEFlattenLayer.h.
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 33 of file NEFlattenLayer.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, arm_compute::auto_init_if_empty(), arm_compute::misc::shape_calculator::compute_flatten_shape(), NEReshapeLayer::configure(), ITensor::info(), and arm_compute::test::validation::input.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 50 of file NEFlattenLayer.cpp.
References NEReshapeLayer::run().
Referenced by NEFullyConnectedLayer::run().
|
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 40 of file NEFlattenLayer.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 NEReshapeLayer::validate().
Referenced by NEFullyConnectedLayer::validate().