21.02
|
Namespaces | |
benchmark | |
colorconvert_helper | |
convolution_3d | |
detail | |
framework | |
traits | |
validation | |
Data Structures | |
class | Accessor |
Accessor implementation for Tensor objects. More... | |
class | ArrayAccessor |
ArrayAccessor implementation for Array objects. More... | |
class | AssetsLibrary |
Factory class to create and fill tensors. More... | |
class | CLAccessor |
Accessor implementation for CLTensor objects. More... | |
class | CLArrayAccessor |
Accessor implementation for CLArray objects. More... | |
class | CLHOGAccessor |
Accessor implementation for CLHOG objects. More... | |
class | CLLutAccessor |
Accessor implementation for CLLut objects. More... | |
class | CLSynthetizeFunction |
This template synthetizes an ICLSimpleFunction which runs the given kernel K. More... | |
class | CLSynthetizeFunctionInitOutputWithZeroAndWithZeroConstantBorder |
As above but this also initializes to zero the input tensor. More... | |
class | CLSynthetizeFunctionWithZeroConstantBorder |
As above but this also setups a Zero border on the input tensor of the specified bordersize. More... | |
struct | common_promoted_signed_type |
Find the signed promoted common type. More... | |
struct | common_promoted_unsigned_type |
Find the unsigned promoted common type. More... | |
class | ContextSchedulerUser |
struct | ContextType |
struct | ContextType< Tensor > |
class | GCAccessor |
Accessor implementation for GCTensor objects. More... | |
class | HOGAccessor |
Accessor implementation for HOG objects. More... | |
class | IAccessor |
Common interface to provide information and access to tensor like structures. More... | |
class | IArrayAccessor |
Common interface to provide information and access to array like structures. More... | |
class | IHOGAccessor |
Common interface to access HOG structure. More... | |
class | ILutAccessor |
Common interface to provide information and access to Lut like structures. More... | |
class | LutAccessor |
Accessor implementation for Lut objects. More... | |
class | NESynthetizeFunction |
This template synthetizes an INESimpleFunction which runs the given kernel K. More... | |
class | NESynthetizeFunctionWithZeroConstantBorder |
As above but this also setups a Zero border on the input tensor of the specified bordersize. More... | |
class | NESynthetizeFunctionWithZeroConstantKernelBorder |
As above but this also setups a Zero border on the input tensor of the kernel's bordersize. More... | |
class | PaddingCalculator |
Calculate required padding. More... | |
class | ParametersLibrary |
Class that contains all the global parameters used by the tests. More... | |
class | RawLutAccessor |
Accessor implementation for std::map-lut objects. More... | |
class | RawTensor |
Subclass of SimpleTensor using uint8_t as value type. More... | |
class | SimpleTensor |
Simple tensor object that stores elements in a consecutive chunk of memory. More... | |
class | SimpleTensorAccessor |
Accessor implementation for SimpleTensor objects. More... | |
class | TensorCache |
Stores RawTensor categorised by the image they are created from including name, format and channel. More... | |
Functions | |
template<typename O , typename F , typename... As> | |
void | apply (O *obj, F &&func, const std::tuple< As... > &args) |
template<typename T , typename std::enable_if< std::is_same< typename T::value_type, std::string >::value, int >::type = 0> | |
std::string | join (T first, T last, const std::string &separator) |
Helper function to concatenate multiple strings. More... | |
template<typename T , typename UnaryOp > | |
std::string | join (T &&first, T &&last, const std::string &separator, UnaryOp &&op) |
Helper function to concatenate multiple values. More... | |
template<typename T , typename std::enable_if< std::is_arithmetic< typename T::value_type >::value, int >::type = 0> | |
std::string | join (T &&first, T &&last, const std::string &separator) |
Helper function to concatenate multiple values. More... | |
std::string | tolower (std::string string) |
Convert string to lower case. More... | |
template<typename T , typename std::enable_if< std::is_arithmetic< T >::value, int >::type = 0> | |
std::string | arithmetic_to_string (T val, int decimal_places=0) |
Create a string with the arithmetic value in full precision. More... | |
void | sleep_in_seconds (float seconds) |
Makes the calling thread to sleep for a specified number of seconds. More... | |
GCTensor | create_tensor (const TensorShape &shape, DataType data_type, int num_channels=1) |
Helper to create an empty tensor. More... | |
GCTensor | create_tensor (const std::string &name, DataType data_type) |
Helper to create an empty tensor. More... | |
void | print_tensor (ITensor &tensor, const std::string &name, IOFormatInfo info=IOFormatInfo(IOFormatInfo::PrintRegion::Full)) |
Helper to print tensor. More... | |
template<typename D , typename T , typename... Ts> | |
void | fill_tensors (D &&dist, std::initializer_list< int > seeds, T &&tensor, Ts &&... other_tensors) |
template<typename T1 , typename T2 > | |
SimpleTensor< T1 > | copy_tensor (const SimpleTensor< T2 > &tensor) |
template<typename T1 , typename T2 , typename std::enable_if< std::is_same< T1, T2 >::value, int >::type = 0> | |
SimpleTensor< T1 > | copy_tensor (const SimpleTensor< half > &tensor) |
template<typename U > | |
void | swap (SimpleTensor< U > &tensor1, SimpleTensor< U > &tensor2) |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | round_half_up (T value) |
Round floating-point value with half value rounding to positive infinity. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | round_half_even (T value, T epsilon=std::numeric_limits< T >::epsilon()) |
Round floating-point value with half value rounding to nearest even. More... | |
Format | get_format_for_channel (Channel channel) |
Look up the format corresponding to a channel. More... | |
Format | get_channel_format (Channel channel) |
Return the format of a channel. More... | |
template<typename F , typename T > | |
T | foldl (F &&, const T &value) |
Base case of foldl. More... | |
template<typename F , typename T , typename U > | |
auto | foldl (F &&func, T &&value1, U &&value2) -> decltype(func(value1, value2)) |
Base case of foldl. More... | |
template<typename F , typename I , typename T , typename... Vs> | |
I | foldl (F &&func, I &&initial, T &&value, Vs &&... values) |
Fold left. More... | |
ValidRegion | shape_to_valid_region (const TensorShape &a_shape, bool border_undefined=false, BorderSize border_size=BorderSize(0)) |
Create a valid region based on tensor shape, border mode and border size. More... | |
ValidRegion | shape_to_valid_region_gaussian_pyramid_half (const TensorShape &a_shape, const ValidRegion &a_valid_region, bool border_undefined=false) |
Create a valid region for Gaussian Pyramid Half based on tensor shape and valid region at level "i - 1" and border mode. More... | |
ValidRegion | shape_to_valid_region_laplacian_pyramid (const TensorShape &a_shape, const ValidRegion &a_valid_region, bool border_undefined=false) |
Create a valid region for Laplacian Pyramid based on tensor shape and valid region at level "i - 1" and border mode. More... | |
template<typename T > | |
void | store_value_with_data_type (void *ptr, T value, DataType data_type) |
Write the value after casting the pointer according to data_type . More... | |
template<typename U , typename T > | |
T | saturate_cast (T val) |
Saturate a value of type T against the numeric limits of type U. More... | |
Coordinates | index2coord (const TensorShape &shape, int index) |
Convert a linear index into n-dimensional coordinates. More... | |
int | coord2index (const TensorShape &shape, const Coordinates &coord) |
Linearise the given coordinate. More... | |
bool | is_in_valid_region (const ValidRegion &valid_region, Coordinates coord) |
Check if a coordinate is within a valid region. More... | |
template<typename T > | |
T | create_tensor (const TensorShape &shape, DataType data_type, int num_channels=1, QuantizationInfo quantization_info=QuantizationInfo(), DataLayout data_layout=DataLayout::NCHW, IRuntimeContext *ctx=nullptr) |
Create and initialize a tensor of the given type. More... | |
template<typename T > | |
T | create_tensor (const TensorShape &shape, Format format, IRuntimeContext *ctx=nullptr) |
Create and initialize a tensor of the given type. More... | |
template<typename T > | |
T | create_multi_image (const TensorShape &shape, Format format) |
Create and initialize a multi-image of the given type. More... | |
template<typename T > | |
T | create_HOG (const HOGInfo &hog_info) |
Create and initialize a HOG (Histogram of Oriented Gradients) of the given type. More... | |
template<typename T > | |
T | create_pyramid (const PyramidInfo &pyramid_info) |
Create and initialize a Pyramid of the given type. More... | |
void | init_conv (int16_t *conv, unsigned int width, unsigned int height, std::random_device::result_type seed) |
Initialize a convolution matrix. More... | |
void | init_separable_conv (int16_t *conv, unsigned int width, unsigned int height, std::random_device::result_type seed) |
Initialize a separable convolution matrix. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
std::vector< T > | generate_random_real (unsigned int num_values, T min, T max, std::random_device::result_type seed) |
Create a vector with a uniform distribution of floating point values across the specified range. More... | |
std::vector< KeyPoint > | generate_random_keypoints (const TensorShape &shape, size_t num_keypoints, std::random_device::result_type seed, size_t num_levels=1) |
Create a vector of random keypoints for pyramid representation. More... | |
template<typename T , typename ArrayAccessor_T > | |
void | fill_array (ArrayAccessor_T &&array, const std::vector< T > &v) |
std::string | get_typestring (DataType data_type) |
Obtain numpy type string from DataType. More... | |
template<typename TensorType > | |
void | sync_if_necessary () |
Sync if necessary. More... | |
template<typename TensorType > | |
void | sync_tensor_if_necessary (TensorType &tensor) |
Sync tensor if necessary. More... | |
Variables | |
std::unique_ptr< ParametersLibrary > | parameters |
std::unique_ptr< AssetsLibrary > | library |
std::unique_ptr< AssetsLibrary > | fixed_library |
void arm_compute::test::apply | ( | O * | obj, |
F && | func, | ||
const std::tuple< As... > & | args | ||
) |
Definition at line 79 of file Utils.h.
References arm_compute::test::framework::apply_impl(), and func.
|
inline |
Create a string with the arithmetic value in full precision.
val | Arithmetic value |
decimal_places | How many decimal places to show |
Definition at line 164 of file Utils.h.
References arm_compute::test::framework::sleep_in_seconds(), and arm_compute::test::validation::ss().
Referenced by PrettyPrinter::print_measurements().
|
inline |
Linearise the given coordinate.
Transforms the given coordinate into a linear offset in terms of elements.
[in] | shape | Shape of the n-dimensional tensor. |
[in] | coord | The to be converted coordinate. |
Definition at line 489 of file Utils.h.
References ARM_COMPUTE_ERROR_ON_MSG, Dimensions< T >::num_dimensions(), and TensorShape::total_size().
Referenced by arm_compute::test::validation::apply_2d_spatial_filter(), arm_compute::test::validation::reference::col2im(), DATA_TEST_CASE(), arm_compute::test::validation::reference::fast_corners(), arm_compute::test::validation::reference::instance_normalization(), arm_compute::test::validation::reference::logical_binary_op(), RawTensor::operator()(), SimpleTensor< uint8_t >::operator()(), arm_compute::test::validation::reference::pad_layer(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::test::validation::reference::reverse(), arm_compute::test::validation::reference::scale_core(), arm_compute::test::validation::tensor_elem_at(), arm_compute::test::validation::reference::tile(), arm_compute::test::validation::reference::transpose(), arm_compute::test::validation::reference::warp_affine(), arm_compute::test::validation::reference::warp_perspective(), and arm_compute::test::validation::reference::weights_reshape().
SimpleTensor<T1> arm_compute::test::copy_tensor | ( | const SimpleTensor< T2 > & | tensor | ) |
Definition at line 223 of file SimpleTensor.h.
References SimpleTensor< T >::data(), SimpleTensor< T >::data_layout(), SimpleTensor< T >::data_type(), SimpleTensor< T >::num_channels(), SimpleTensor< T >::quantization_info(), and SimpleTensor< T >::shape().
SimpleTensor< T1 > copy_tensor | ( | const SimpleTensor< half > & | tensor | ) |
Definition at line 237 of file SimpleTensor.h.
References SimpleTensor< T >::data(), SimpleTensor< T >::data_layout(), SimpleTensor< T >::data_type(), SimpleTensor< T >::num_channels(), SimpleTensor< T >::quantization_info(), and SimpleTensor< T >::shape().
|
inline |
|
inline |
Create and initialize a multi-image of the given type.
[in] | shape | Tensor shape. |
[in] | format | Format type. |
Definition at line 571 of file Utils.h.
References Dimensions< T >::x(), and Dimensions< T >::y().
|
inline |
Create and initialize a Pyramid of the given type.
[in] | pyramid_info | The PyramidInfo object. |
|
inline |
Helper to create an empty tensor.
[in] | shape | Desired shape. |
[in] | data_type | Desired data type. |
[in] | num_channels | (Optional) It indicates the number of channels for each tensor element |
Definition at line 46 of file Helper.h.
References GCTensor::allocator(), and ITensorAllocator::init().
Helper to create an empty tensor.
[in] | name | File name from which to get the dimensions. |
[in] | data_type | Desired data type. |
Definition at line 61 of file Helper.h.
References GCTensor::allocator(), arm_compute::test::validation::data_type, ITensorAllocator::init(), library, and SimpleTensor< T >::shape().
|
inline |
Create and initialize a tensor of the given type.
[in] | shape | Tensor shape. |
[in] | data_type | Data type. |
[in] | num_channels | (Optional) Number of channels. |
[in] | quantization_info | (Optional) Quantization info for asymmetric quantized types. |
[in] | data_layout | (Optional) Data layout. Default is NCHW. |
[in] | ctx | (Optional) Pointer to the runtime context. |
Definition at line 532 of file Utils.h.
References arm_compute::test::validation::data_layout, arm_compute::test::validation::info, TensorInfo::set_data_layout(), and TensorInfo::set_quantization_info().
|
inline |
Create and initialize a tensor of the given type.
[in] | shape | Tensor shape. |
[in] | format | Format type. |
[in] | ctx | (Optional) Pointer to the runtime context. |
Definition at line 553 of file Utils.h.
References arm_compute::test::validation::info.
|
inline |
void arm_compute::test::fill_tensors | ( | D && | dist, |
std::initializer_list< int > | seeds, | ||
T && | tensor, | ||
Ts &&... | other_tensors | ||
) |
Definition at line 43 of file Helper.h.
References ARM_COMPUTE_ERROR_ON, and library.
|
inline |
|
inline |
|
inline |
Fold left.
[in] | func | Binary function to be called. |
[in] | initial | Initial value. |
[in] | value | Argument passed to the function. |
[in] | values | Remaining arguments. |
Definition at line 211 of file Utils.h.
|
inline |
Create a vector of random keypoints for pyramid representation.
[in] | shape | The shape of the input tensor. |
[in] | num_keypoints | The number of keypoints to be created. |
[in] | seed | The random seed to be used. |
[in] | num_levels | The number of pyramid levels. |
Definition at line 700 of file Utils.h.
References ARM_COMPUTE_ERROR_ON, KeyPoint::tracking_status, Dimensions< T >::x(), KeyPoint::x, Dimensions< T >::y(), and KeyPoint::y.
|
inline |
Create a vector with a uniform distribution of floating point values across the specified range.
[in] | num_values | The number of values to be created. |
[in] | min | The minimum value in distribution (inclusive). |
[in] | max | The maximum value in distribution (inclusive). |
[in] | seed | The random seed to be used. |
Return the format of a channel.
[in] | channel | Channel type. |
Definition at line 170 of file Utils.h.
References arm_compute::B, arm_compute::G, arm_compute::R, and arm_compute::U8.
Referenced by AssetsLibrary::fill().
Look up the format corresponding to a channel.
[in] | channel | Channel type. |
Definition at line 151 of file Utils.h.
References arm_compute::B, arm_compute::G, arm_compute::R, and arm_compute::RGB888.
Referenced by AssetsLibrary::fill(), and AssetsLibrary::get().
|
inline |
Obtain numpy type string from DataType.
[in] | data_type | Data type. |
Definition at line 742 of file Utils.h.
References ARM_COMPUTE_ERROR, arm_compute::F32, arm_compute::F64, arm_compute::S16, arm_compute::S32, arm_compute::S64, arm_compute::S8, arm_compute::SIZET, arm_compute::support::cpp11::to_string(), arm_compute::U16, arm_compute::U32, arm_compute::U64, and arm_compute::U8.
|
inline |
Convert a linear index into n-dimensional coordinates.
[in] | shape | Shape of the n-dimensional tensor. |
[in] | index | Linear index specifying the i-th element. |
Definition at line 460 of file Utils.h.
References ARM_COMPUTE_ERROR_ON_MSG, Dimensions< T >::num_dimensions(), TensorShape::set(), and TensorShape::total_size().
Referenced by arm_compute::test::validation::reference::box3x3(), arm_compute::test::validation::reference::channel_combine(), arm_compute::test::validation::reference::convolution(), DATA_TEST_CASE(), arm_compute::test::validation::reference::dilate(), arm_compute::test::validation::reference::erode(), arm_compute::test::validation::reference::fast_corners(), AssetsLibrary::fill(), AssetsLibrary::fill_boxes(), arm_compute::test::validation::reference::gaussian3x3(), arm_compute::test::validation::reference::gaussian5x5(), arm_compute::test::validation::reference::median3x3(), arm_compute::test::validation::reference::non_linear_filter(), arm_compute::test::validation::reference::non_maxima_suppression(), arm_compute::test::validation::reference::pad_layer(), arm_compute::test::validation::reference::permute(), arm_compute::test::validation::reference::remap(), arm_compute::test::validation::reference::reverse(), arm_compute::test::validation::reference::scale_core(), arm_compute::test::validation::reference::tile(), arm_compute::test::validation::reference::transpose(), arm_compute::test::validation::transpose(), arm_compute::test::validation::validate(), arm_compute::test::validation::validate_wrap(), arm_compute::test::validation::reference::warp_affine(), arm_compute::test::validation::reference::warp_perspective(), and arm_compute::test::validation::reference::yolo_layer().
|
inline |
Initialize a convolution matrix.
[in,out] | conv | The input convolution matrix. |
[in] | width | The width of the convolution matrix. |
[in] | height | The height of the convolution matrix. |
[in] | seed | The random seed to be used. |
|
inline |
|
inline |
Check if a coordinate is within a valid region.
Definition at line 507 of file Utils.h.
References ValidRegion::end(), Dimensions< int >::num_max_dimensions, and ValidRegion::start().
Referenced by arm_compute::test::validation::reference::fast_corners(), arm_compute::test::validation::reference::non_linear_filter(), arm_compute::test::validation::reference::non_maxima_suppression(), arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
std::string arm_compute::test::join | ( | T | first, |
T | last, | ||
const std::string & | separator | ||
) |
Helper function to concatenate multiple strings.
[in] | first | Iterator pointing to the first element to be concatenated. |
[in] | last | Iterator pointing behind the last element to be concatenated. |
[in] | separator | String used to join the elements. |
separator
. Definition at line 93 of file Utils.h.
References accumulate().
Referenced by GEMMParam::__str__(), NativeGEMMConfig::__str__(), ReshapedOnlyRHSGEMMConfig::__str__(), ReshapedGEMMConfig::__str__(), Measurement::__str__(), enable_tracing::do_insert_tracing(), enable_tracing::get_class_and_args(), Framework::init(), join(), JSONPrinter::print_measurements(), format_doxygen::process_comment(), and GEMMBenchmarkResultRecorder::summary().
std::string arm_compute::test::join | ( | T && | first, |
T && | last, | ||
const std::string & | separator, | ||
UnaryOp && | op | ||
) |
Helper function to concatenate multiple values.
All values are converted to std::string using the provided operation before being joined.
The signature of op has to be equivalent to std::string op(const T::value_type &val).
[in] | first | Iterator pointing to the first element to be concatenated. |
[in] | last | Iterator pointing behind the last element to be concatenated. |
[in] | separator | String used to join the elements. |
[in] | op | Conversion function. |
separator
. Definition at line 117 of file Utils.h.
References accumulate().
std::string arm_compute::test::join | ( | T && | first, |
T && | last, | ||
const std::string & | separator | ||
) |
Helper function to concatenate multiple values.
All values are converted to std::string using std::to_string before being joined.
[in] | first | Iterator pointing to the first element to be concatenated. |
[in] | last | Iterator pointing behind the last element to be concatenated. |
[in] | separator | String used to join the elements. |
separator
. Definition at line 136 of file Utils.h.
References join(), and arm_compute::support::cpp11::to_string().
|
inline |
Helper to print tensor.
Definition at line 81 of file Helper.h.
References arm_compute::test::validation::info, IGCTensor::map(), ITensor::print(), tf_frozen_model_extractor::t, and IGCTensor::unmap().
|
inline |
Round floating-point value with half value rounding to nearest even.
[in] | value | floating-point value to be rounded. |
[in] | epsilon | precision. |
value
. Definition at line 88 of file Utils.h.
|
inline |
T arm_compute::test::saturate_cast | ( | T | val | ) |
Saturate a value of type T against the numeric limits of type U.
[in] | val | Value to be saturated. |
Definition at line 414 of file Utils.h.
References arm_compute::support::cpp11::lowest().
Referenced by arm_compute::test::validation::reference::absolute_difference(), arm_compute::test::validation::reference::accumulate(), arm_compute::test::validation::reference::accumulate_squared(), arm_compute::test::validation::reference::convolution(), arm_compute::test::validation::reference::magnitude(), and arm_compute::test::validation::reference::non_linear_filter().
|
inline |
Create a valid region based on tensor shape, border mode and border size.
[in] | a_shape | Shape used as size of the valid region. |
[in] | border_undefined | (Optional) Boolean indicating if the border mode is undefined. |
[in] | border_size | (Optional) Border size used to specify the region to exclude. |
shape
if border_undefined
is false; otherwise return A valid region starting at (border_size.left
, border_size.top
, ...) with reduced size of shape
. Definition at line 225 of file Utils.h.
References ValidRegion::anchor, ARM_COMPUTE_ERROR_ON, Dimensions< T >::num_dimensions(), Dimensions< T >::set(), TensorShape::set(), arm_compute::test::validation::shape, ValidRegion::shape, arm_compute::test::validation::valid_region, Dimensions< T >::x(), and Dimensions< T >::y().
Referenced by arm_compute::test::validation::combine(), arm_compute::test::validation::reference::fast_corners(), arm_compute::test::validation::FIXTURE_DATA_TEST_CASE(), arm_compute::test::validation::reference::non_linear_filter(), arm_compute::test::validation::reference::non_maxima_suppression(), arm_compute::test::validation::reference::optical_flow(), arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
inline |
Create a valid region for Gaussian Pyramid Half based on tensor shape and valid region at level "i - 1" and border mode.
[in] | a_shape | Shape used at level "i - 1" of Gaussian Pyramid Half |
[in] | a_valid_region | Valid region used at level "i - 1" of Gaussian Pyramid Half |
[in] | border_undefined | (Optional) Boolean indicating if the border mode is undefined. |
return The valid region for the level "i" of Gaussian Pyramid Half
Definition at line 259 of file Utils.h.
References ValidRegion::anchor, ARM_COMPUTE_ERROR_ON, Dimensions< T >::num_dimensions(), Dimensions< T >::set(), TensorShape::set(), arm_compute::test::validation::shape, ValidRegion::shape, arm_compute::test::validation::valid_region, Dimensions< T >::x(), and Dimensions< T >::y().
Referenced by shape_to_valid_region_laplacian_pyramid().
|
inline |
Create a valid region for Laplacian Pyramid based on tensor shape and valid region at level "i - 1" and border mode.
[in] | a_shape | Shape used at level "i - 1" of Laplacian Pyramid |
[in] | a_valid_region | Valid region used at level "i - 1" of Laplacian Pyramid |
[in] | border_undefined | (Optional) Boolean indicating if the border mode is undefined. |
return The valid region for the level "i" of Laplacian Pyramid
Definition at line 322 of file Utils.h.
References ValidRegion::anchor, BorderSize::bottom, BorderSize::left, BorderSize::right, Dimensions< T >::set(), TensorShape::set(), ValidRegion::shape, shape_to_valid_region_gaussian_pyramid_half(), BorderSize::top, and arm_compute::test::validation::valid_region.
void arm_compute::test::sleep_in_seconds | ( | float | seconds | ) |
Makes the calling thread to sleep for a specified number of seconds.
[in] | seconds | Amount of seconds to sleep. Will return immediately if less or equal to zero. |
Definition at line 38 of file Utils.cpp.
Referenced by arithmetic_to_string(), and Framework::run().
void arm_compute::test::store_value_with_data_type | ( | void * | ptr, |
T | value, | ||
DataType | data_type | ||
) |
Write the value after casting the pointer according to data_type
.
[out] | ptr | Pointer to memory where the value will be written. |
[in] | value | Value that will be written. |
[in] | data_type | Data type that will be written. |
Definition at line 353 of file Utils.h.
References ARM_COMPUTE_ERROR, arm_compute::BFLOAT16, arm_compute::F16, arm_compute::F32, arm_compute::F64, arm_compute::QASYMM16, arm_compute::QASYMM8, arm_compute::QASYMM8_SIGNED, arm_compute::QSYMM16, arm_compute::QSYMM8, arm_compute::QSYMM8_PER_CHANNEL, arm_compute::S16, arm_compute::S32, arm_compute::S64, arm_compute::S8, arm_compute::SIZET, arm_compute::U16, arm_compute::U32, arm_compute::U64, and arm_compute::U8.
Referenced by AssetsLibrary::fill_boxes().
void arm_compute::test::swap | ( | SimpleTensor< U > & | tensor1, |
SimpleTensor< U > & | tensor2 | ||
) |
Definition at line 442 of file SimpleTensor.h.
Referenced by SimpleTensor< uint8_t >::operator=().
|
inline |
Sync if necessary.
Definition at line 790 of file Utils.h.
References CLScheduler::get(), arm_compute::opencl_is_available(), CLScheduler::sync(), and type.
|
inline |
Sync tensor if necessary.
[in] | tensor | Tensor to be sync. |
Definition at line 807 of file Utils.h.
References ARM_COMPUTE_UNUSED, IGCTensor::map(), arm_compute::opengles31_is_available(), tf_frozen_model_extractor::t, type, and IGCTensor::unmap().
|
inline |
Convert string to lower case.
[in] | string | To be converted string. |
Definition at line 147 of file Utils.h.
References arm_compute::mlgo::parser::end().
Referenced by arm_compute::test::framework::dataset_mode_from_name(), arm_compute::test::framework::instrument_type_from_name(), arm_compute::test::framework::log_format_from_name(), and arm_compute::test::framework::log_level_from_name().
std::unique_ptr< AssetsLibrary > fixed_library |
Definition at line 81 of file main.cpp.
Referenced by main(), and arm_compute::utils::run_example().
std::unique_ptr< AssetsLibrary > library |
Definition at line 78 of file main.cpp.
Referenced by arm_compute::test::validation::reference::accumulate(), arm_compute::test::validation::reference::accumulate_squared(), arm_compute::test::validation::reference::accumulate_weighted(), arm_compute::test::validation::canny_edge_parameters(), create_tensor(), arm_compute::test::validation::DATA_TEST_CASE(), arm_compute::test::validation::fill_lookuptable(), arm_compute::test::validation::fill_mask_from_pattern(), fill_tensors(), arm_compute::test::validation::fill_warp_matrix(), arm_compute::test::validation::harris_corners_parameters(), main(), arm_compute::utils::run_example(), and arm_compute::test::validation::TEST_CASE().
std::unique_ptr< ParametersLibrary > parameters |
Definition at line 46 of file Framework.cpp.
Referenced by main().