Compute Library
GCFillBorder Class Reference

Basic function to run GCFillBorderKernel. More...

#include <GCFillBorder.h>

Collaboration diagram for GCFillBorder:

Public Member Functions

void configure (IGCTensor *tensor, unsigned int border_width, BorderMode border_mode, const PixelValue &constant_border_value=PixelValue())
 Initialize the function. More...
- Public Member Functions inherited from IGCSimpleFunction
 IGCSimpleFunction ()
 Default 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...

Detailed Description

Basic function to run GCFillBorderKernel.

Definition at line 37 of file GCFillBorder.h.

Member Function Documentation

◆ configure()

void configure ( IGCTensor tensor,
unsigned int  border_width,
BorderMode  border_mode,
const PixelValue constant_border_value = PixelValue() 

Initialize the function.

[in,out]tensorSource tensor. Data types supported: F16/F32
[in]border_widthThe border width
[in]border_modeStrategy to use for borders.
[in]constant_border_value(Optional) Constant value to use for borders if border_mode is set to CONSTANT.

Definition at line 35 of file GCFillBorder.cpp.

36 {
37  auto k = arm_compute::support::cpp14::make_unique<GCFillBorderKernel>();
38  k->configure(tensor, BorderSize(border_width), border_mode, constant_border_value);
39  _kernel = std::move(k);
40 }
Container for 2D border size.
Definition: Types.h:259

References arm_compute::test::validation::border_mode.

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