Compute Library
 19.08
NEPriorBoxLayer Class Reference

Basic function to run NEPriorBoxLayerKernel. More...

#include <NEPriorBoxLayer.h>

Collaboration diagram for NEPriorBoxLayer:
[legend]

Public Member Functions

void configure (const ITensor *input1, const ITensor *input2, ITensor *output, const PriorBoxLayerInfo &info)
 Set the input and output tensors. 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 *input1, const ITensorInfo *input2, const ITensorInfo *output, const PriorBoxLayerInfo &info)
 Static function to check if given info will lead to a valid configuration of NEPriorBoxLayer. More...
 

Detailed Description

Basic function to run NEPriorBoxLayerKernel.

Definition at line 36 of file NEPriorBoxLayer.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input1,
const ITensor input2,
ITensor output,
const PriorBoxLayerInfo info 
)

Set the input and output tensors.

Parameters
[in]input1First source tensor. Data types supported: F32. Data layouts supported: NCHW/NHWC.
[in]input2Second source tensor. Data types and layouts supported: same as input1
[out]outputDestination tensor. Output dimensions are [W * H * num_priors * 4, 2]. Data type supported: same as input
[in]infoPrior box layer info.

Definition at line 36 of file NEPriorBoxLayer.cpp.

37 {
38  auto k = arm_compute::support::cpp14::make_unique<NEPriorBoxLayerKernel>();
39  k->configure(input1, input2, output, info);
40  _kernel = std::move(k);
41 }

References arm_compute::test::validation::info.

◆ validate()

Status validate ( const ITensorInfo input1,
const ITensorInfo input2,
const ITensorInfo output,
const PriorBoxLayerInfo info 
)
static

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

Parameters
[in]input1First source tensor info. Data types supported: F32. Data layouts supported: NCHW/NHWC.
[in]input2Second source tensor info. Data types and layouts supported: same as input1
[in]outputDestination tensor info. Output dimensions are [W * H * num_priors * 4, 2]. Data type supported: same as input
[in]infoPrior box layer info.
Returns
a status

Definition at line 43 of file NEPriorBoxLayer.cpp.

44 {
45  return NEPriorBoxLayerKernel::validate(input1, input2, output, info);
46 }
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const PriorBoxLayerInfo &info)
Static function to check if given info will lead to a valid configuration of NEPriorBoxLayerKernel.

References arm_compute::test::validation::info, and NEPriorBoxLayerKernel::validate().


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