Compute Library
 21.02
CLNormalizePlanarYUVLayer Class Reference

Basic function to run CLNormalizePlanarYUVLayerKernel. More...

#include <CLNormalizePlanarYUVLayer.h>

Collaboration diagram for CLNormalizePlanarYUVLayer:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output, const ICLTensor *mean, const ICLTensor *std)
 Set the input and output tensors. More...
 
void configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ICLTensor *mean, const ICLTensor *std)
 Set the input and output tensors. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction (CLRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLSimpleFunction (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLSimpleFunction (ICLSimpleFunction &&)=default
 Default move constructor. More...
 
ICLSimpleFunctionoperator= (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLSimpleFunctionoperator= (ICLSimpleFunction &&)=default
 Default move assignment operator. More...
 
 ~ICLSimpleFunction ()
 Default destructor. 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, const ITensorInfo *mean, const ITensorInfo *std)
 Static function to check if given info will lead to a valid configuration of CLNormalizePlanarYUVLayer. More...
 

Detailed Description

Basic function to run CLNormalizePlanarYUVLayerKernel.

Note
The function simulates a NormalizePlanarYUV layer.

Definition at line 42 of file CLNormalizePlanarYUVLayer.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( const ICLTensor input,
ICLTensor output,
const ICLTensor mean,
const ICLTensor std 
)

Set the input and output tensors.

Parameters
[in]inputSource tensor. 3 lower dimensions represent a single input with dimensions [width, height, channels]. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
[out]outputDestinationfeature tensor. Data type supported: same as input
[in]meanMean values tensor. 1 dimension with size equal to the number of input channels. Data types supported: Same as input
[in]stdStandard deviation values tensor. 1 dimension with size equal to the number of input channels. Data types supported: Same as input

Definition at line 33 of file CLNormalizePlanarYUVLayer.cpp.

References CLKernelLibrary::get().

34 {
35  configure(CLKernelLibrary::get().get_compile_context(), input, output, mean, std);
36 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, ICLTensor *output, const ICLTensor *mean, const ICLTensor *std)
Set the input and output tensors.

◆ configure() [2/2]

void configure ( const CLCompileContext compile_context,
const ICLTensor input,
ICLTensor output,
const ICLTensor mean,
const ICLTensor std 
)

Set the input and output tensors.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputSource tensor. 3 lower dimensions represent a single input with dimensions [width, height, channels]. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
[out]outputDestinationfeature tensor. Data type supported: same as input
[in]meanMean values tensor. 1 dimension with size equal to the number of input channels. Data types supported: Same as input
[in]stdStandard deviation values tensor. 1 dimension with size equal to the number of input channels. Data types supported: Same as input

Definition at line 38 of file CLNormalizePlanarYUVLayer.cpp.

39 {
40  auto k = std::make_unique<CLNormalizePlanarYUVLayerKernel>();
41  k->configure(compile_context, input, output, mean, std);
42  _kernel = std::move(k);
43 }

◆ validate()

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

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

Parameters
[in]inputSource tensor info. 3 lower dimensions represent a single input with dimensions [width, height, channels]. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32.
[out]outputDestination tensor info. Data type supported: same as input
[in]meanMean values tensor info. 1 dimension with size equal to the number of input channels. Data types supported: Same as input
[in]stdStandard deviation values tensor info. 1 dimension with size equal to the number of input channels. Data types supported: Same as input
Returns
a status

Definition at line 45 of file CLNormalizePlanarYUVLayer.cpp.

References CLNormalizePlanarYUVLayerKernel::validate().

Referenced by arm_compute::test::validation::DATA_TEST_CASE().

47 {
49 }
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ITensorInfo *mean, const ITensorInfo *std)
Static function to check if given info will lead to a valid configuration of CLNormalizePlanarYUVLaye...

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