Compute Library
 19.08
GCAbsoluteDifference Class Reference

Basic function to run GCAbsoluteDifferenceKernel. More...

#include <GCAbsoluteDifference.h>

Collaboration diagram for GCAbsoluteDifference:
[legend]

Public Member Functions

void configure (const IGCTensor *input1, const IGCTensor *input2, IGCTensor *output)
 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 GCAbsoluteDifferenceKernel.

Note
The tensor data types for the inputs must be U8.
The function calculates the absolute difference also when the 2 inputs have different tensor data types.

Definition at line 39 of file GCAbsoluteDifference.h.

Member Function Documentation

◆ configure()

void configure ( const IGCTensor input1,
const IGCTensor input2,
IGCTensor output 
)

Initialize the function.

Parameters
[in]input1First input tensor. Data types supported: U8
[in]input2Second input tensor. Data types supported: U8
[out]outputOutput tensor. Data types supported: U8

Definition at line 35 of file GCAbsoluteDifference.cpp.

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

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