Compute Library  18.03
Validation.h File Reference
#include "arm_compute/core/FixedPoint.h"
#include "arm_compute/core/IArray.h"
#include "arm_compute/core/Types.h"
#include "support/ToolchainSupport.h"
#include "tests/IAccessor.h"
#include "tests/SimpleTensor.h"
#include "tests/Types.h"
#include "tests/Utils.h"
#include "tests/framework/Asserts.h"
#include "tests/framework/Exceptions.h"
#include "utils/TypePrinter.h"
#include <iomanip>
#include <ios>
#include <vector>

Go to the source code of this file.

Data Structures

class  AbsoluteTolerance< T >
 Class reprensenting an absolute tolerance value. More...
 
class  RelativeTolerance< T >
 Class reprensenting a relative tolerance value. More...
 
struct  compare_base< T >
 
struct  compare< T >
 
struct  compare< AbsoluteTolerance< U > >
 
struct  compare< RelativeTolerance< U > >
 

Namespaces

 arm_compute
 This file contains all available output stages for GEMMLowp on OpenCL.
 
 arm_compute::test
 
 arm_compute::test::validation
 

Functions

template<typename T >
inline::std::ostream & operator<< (::std::ostream &os, const AbsoluteTolerance< T > &tolerance)
 Print AbsoluteTolerance type. More...
 
template<typename T >
inline::std::ostream & operator<< (::std::ostream &os, const RelativeTolerance< T > &tolerance)
 Print RelativeTolerance type. More...
 
template<typename T >
bool compare_dimensions (const Dimensions< T > &dimensions1, const Dimensions< T > &dimensions2)
 
void validate (const arm_compute::ValidRegion &region, const arm_compute::ValidRegion &reference)
 Validate valid regions. More...
 
void validate (const arm_compute::PaddingSize &padding, const arm_compute::PaddingSize &reference)
 Validate padding. More...
 
void validate (const arm_compute::PaddingSize &padding, const arm_compute::PaddingSize &width_reference, const arm_compute::PaddingSize &height_reference)
 Validate padding. More...
 
template<typename T , typename U = AbsoluteTolerance<T>>
void validate (const IAccessor &tensor, const SimpleTensor< T > &reference, U tolerance_value=U(), float tolerance_number=0.f, float absolute_tolerance_value=0.f)
 Validate tensors. More...
 
template<typename T , typename U = AbsoluteTolerance<T>>
void validate (const IAccessor &tensor, const SimpleTensor< T > &reference, const ValidRegion &valid_region, U tolerance_value=U(), float tolerance_number=0.f, float absolute_tolerance_value=0.f)
 Validate tensors with valid region. More...
 
template<typename T , typename U = AbsoluteTolerance<T>>
void validate (const IAccessor &tensor, const SimpleTensor< T > &reference, const SimpleTensor< T > &valid_mask, U tolerance_value=U(), float tolerance_number=0.f, float absolute_tolerance_value=0.f)
 Validate tensors with valid mask. More...
 
void validate (const IAccessor &tensor, const void *reference_value)
 Validate tensors against constant value. More...
 
void validate (const IAccessor &tensor, BorderSize border_size, const BorderMode &border_mode, const void *border_value)
 Validate border against a constant value. More...
 
void validate (std::vector< unsigned int > classified_labels, std::vector< unsigned int > expected_labels)
 Validate classified labels against expected ones. More...
 
template<typename T , typename U = AbsoluteTolerance<T>>
bool validate (T target, T reference, U tolerance=AbsoluteTolerance< T >())
 Validate float value. More...
 
template<typename T , typename U , typename V = AbsoluteTolerance<float>>
void validate_keypoints (T target_first, T target_last, U reference_first, U reference_last, V tolerance=AbsoluteTolerance< float >(), float allowed_missing_percentage=5.f, float allowed_mismatch_percentage=5.f)
 Validate key points. More...
 
template<typename T , typename U , typename = typename std::enable_if<std::is_integral<T>::value>::type>
void validate_wrap (const IAccessor &tensor, const SimpleTensor< T > &reference, U tolerance_value, float tolerance_number)
 
template<typename T , typename U , typename = typename std::enable_if<std::is_integral<T>::value>::type>
void validate_wrap (const IAccessor &tensor, const SimpleTensor< T > &reference, const ValidRegion &valid_region, U tolerance_value, float tolerance_number)
 
template<typename T , typename U >
void validate_min_max_loc (const MinMaxLocationValues< T > &target, const MinMaxLocationValues< U > &reference)
 
template<typename T , typename U , typename V >
std::pair< int64_t, int64_t > compare_keypoints (T first1, T last1, U first2, U last2, V tolerance, bool check_mismatches=true)
 Check which keypoints from [first1, last1) are missing in [first2, last2) More...