Compute Library
18.05
|
Basic function to run CLThresholdKernel. More...
#include <CLThreshold.h>
Public Member Functions | |
void | configure (const ICLTensor *input, ICLTensor *output, uint8_t threshold, uint8_t false_value=0, uint8_t true_value=0, ThresholdType type=ThresholdType::BINARY, uint8_t upper=0) |
Initialise the function's source, destination, thresholds and threshold type. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction () | |
Default constructor. More... | |
void | run () overridefinal |
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... | |
Basic function to run CLThresholdKernel.
Definition at line 37 of file CLThreshold.h.
void configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
uint8_t | threshold, | ||
uint8_t | false_value = 0 , |
||
uint8_t | true_value = 0 , |
||
ThresholdType | type = ThresholdType::BINARY , |
||
uint8_t | upper = 0 |
||
) |
Initialise the function's source, destination, thresholds and threshold type.
[in] | input | First tensor input. Data types supported: U8. |
[out] | output | Output tensor. Data types supported: U8. |
[in] | threshold | Threshold. If upper threshold is specified, this will be used as the lower threshold. |
[in] | false_value | Value to assign when the condition is false. |
[in] | true_value | value to assign when the condition is true. |
[in] | type | Thresholding type. Can either be BINARY or RANGE. |
[in] | upper | Upper threshold. Only used with RANGE thresholding |
Referenced by arm_compute::test::validation::DATA_TEST_CASE().