Compute Library
 19.08
NEReshapeLayer Class Reference

Basic function to run NEReshapeLayerKernel. More...

#include <NEReshapeLayer.h>

Collaboration diagram for NEReshapeLayer:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output)
 Initialise the kernel's inputs and outputs. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder ()
 Constructor. More...
 
void run () override final
 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 NEReshapeLayer. More...
 

Detailed Description

Basic function to run NEReshapeLayerKernel.

Definition at line 35 of file NEReshapeLayer.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor output 
)

Initialise the kernel's inputs and outputs.

Parameters
[in]inputFirst tensor input. Data type supported: U8/S8/QASYMM8//U16/S16/U32/S32/F16/F32
[out]outputOutput tensor. Data type supported: Same as input

Definition at line 34 of file NEReshapeLayer.cpp.

35 {
36  auto k = arm_compute::support::cpp14::make_unique<NEReshapeLayerKernel>();
37  k->configure(input, output);
38  _kernel = std::move(k);
39 }

Referenced by NEReduceMean::configure(), and NEGEMMConvolutionLayer::configure().

◆ validate()

Status validate ( const ITensorInfo input,
const ITensorInfo output 
)
static

Static function to check if given info will lead to a valid configuration of NEReshapeLayer.

Parameters
[in]inputFirst tensor info. Data type supported: U8/S8/QASYMM8//U16/S16/U32/S32/F16/F32
[in]outputOutput tensor info. Data type supported: Same as input
Returns
a status

Definition at line 41 of file NEReshapeLayer.cpp.

42 {
45 
46  return Status{};
47 }
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
Definition: Error.h:193
Status class.
Definition: Error.h:52
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
Definition: Validate.h:163
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NEReshapeLayerKernel.

References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, and NEReshapeLayerKernel::validate().


The documentation for this class was generated from the following files: