Compute Library
 21.08
Utils.h File Reference
#include "arm_compute/core/Types.h"
#include "tests/Globals.h"
#include "tests/Types.h"
#include <array>
#include <random>
#include <type_traits>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::test
 
 arm_compute::test::validation
 

Functions

bool is_valid_pixel_index (int x, int y, int width, int height, int border_size)
 Checks if a pixel has valid coordinates. More...
 
template<typename T >
tensor_elem_at (const SimpleTensor< T > &src, Coordinates coord, BorderMode border_mode, T constant_border_value)
 
template<typename T >
bilinear_policy (const SimpleTensor< T > &in, Coordinates id, float xn, float yn, BorderMode border_mode, T constant_border_value)
 
template<typename T , typename U , typename V >
void apply_2d_spatial_filter (Coordinates coord, const SimpleTensor< T > &src, SimpleTensor< U > &dst, const TensorShape &filter_shape, const V *filter_itr, double scale, BorderMode border_mode, T constant_border_value=T(0))
 
RawTensor transpose (const RawTensor &src, int chunk_width)
 
bool valid_bilinear_policy (float xn, float yn, int width, int height, BorderMode border_mode)