Compute Library
 19.08
CLElementwiseMin Class Reference

Basic function to run CLArithmeticOperationKernel for min. More...

#include <CLElementwiseOperations.h>

Collaboration diagram for CLElementwiseMin:
[legend]

Public Member Functions

void configure (ICLTensor *input1, ICLTensor *input2, ICLTensor *output)
 Initialise the kernel's inputs, output and conversion policy. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction ()
 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...
 

Static Public Member Functions

static Status validate (const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
 Static function to check if given info will lead to a valid configuration of CLArithmeticOperationKernel for min. More...
 

Detailed Description

Basic function to run CLArithmeticOperationKernel for min.

Note
The tensor data type for the inputs must be U8/QASYMM8/S16/QSYMM16/S32/U32/F16/F32.
The function performs a max operation between two tensors.

Definition at line 155 of file CLElementwiseOperations.h.

Member Function Documentation

◆ configure()

void configure ( ICLTensor input1,
ICLTensor input2,
ICLTensor output 
)

Initialise the kernel's inputs, output and conversion policy.

Parameters
[in,out]input1First tensor input. Data types supported: U8/QASYMM8/S16/QSYMM16/S32/U32/F16/F32. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[in,out]input2Second tensor input. Data types supported: U8, QASYMM8 (only if input1 is QASYMM8), S16, QSYMM16 (only if input1 is QSYMM16), F16/F32. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[out]outputOutput tensor. Data types supported: U8 (Only if both inputs are U8), QASYMM8 (only if both inputs are QASYMM8), S16, QSYMM16 (only if both inputs are QSYMM16), F16/F32.

Definition at line 103 of file CLElementwiseOperations.cpp.

104 {
105  auto k = arm_compute::support::cpp14::make_unique<CLArithmeticOperationKernel>();
106  k->configure(ArithmeticOperation::MIN, input1, input2, output);
107  _kernel = std::move(k);
108  configure_border_handler(_border_handler, _kernel->border_size(), input1, input2, output);
109 }

References arm_compute::MIN.

◆ validate()

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

Static function to check if given info will lead to a valid configuration of CLArithmeticOperationKernel for min.

Parameters
[in]input1First tensor input info. Data types supported: U8/QASYMM8/S16/QSYMM16/S32/U32/F16/F32.
[in]input2Second tensor input info. Data types supported: U8, QASYMM8 (only if input1 is QASYMM8), S16, QSYMM16 (only if input1 is QSYMM16), F16/F32.
[in]outputOutput tensor info. Data types supported: U8 (Only if both inputs are U8), QASYMM8 ( only if both inputs are QASYMM8), S16, QSYMM16 (only if both inputs are QSYMM16), F16/F32.
Returns
a status

Definition at line 111 of file CLElementwiseOperations.cpp.

112 {
113  return CLArithmeticOperationKernel::validate(ArithmeticOperation::MIN, input1, input2, output);
114 }
static Status validate(ArithmeticOperation op, const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of CLArithmeticOperationKer...

References arm_compute::MIN, and CLArithmeticOperationKernel::validate().


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