|
template<typename S , typename T > |
auto | ceil_to_multiple (S value, T divisor) -> decltype(((value+divisor-1)/divisor)*divisor) |
| Computes the smallest number larger or equal to value that is a multiple of divisor. More...
|
|
template<typename S , typename T > |
auto | floor_to_multiple (S value, T divisor) -> decltype((value/divisor)*divisor) |
| Computes the largest number smaller or equal to value that is a multiple of divisor. More...
|
|
template<typename S , typename T > |
constexpr auto | DIV_CEIL (S val, T m) -> decltype((val+m-1)/m) |
| Calculate the rounded up quotient of val / m. More...
|
|
std::string | build_information () |
| Returns the arm_compute library build information. More...
|
|
std::string | read_file (const std::string &filename, bool binary) |
| Load an entire file in memory. More...
|
|
template<typename T > |
const std::string | val_to_string (T val) |
| Return a value as a string. More...
|
|
size_t | data_size_from_type (DataType data_type) |
| The size in bytes of the data type. More...
|
|
size_t | pixel_size_from_format (Format format) |
| The size in bytes of the pixel format. More...
|
|
size_t | element_size_from_data_type (DataType dt) |
| The size in bytes of the data type. More...
|
|
DataType | data_type_from_format (Format format) |
| Return the data type used by a given single-planar pixel format. More...
|
|
int | plane_idx_from_channel (Format format, Channel channel) |
| Return the plane index of a given channel given an input format. More...
|
|
size_t | num_planes_from_format (Format format) |
| Return the number of planes for a given format. More...
|
|
size_t | num_channels_from_format (Format format) |
| Return the number of channels for a given single-planar pixel format. More...
|
|
bool | separate_matrix (const int16_t *conv, int16_t *conv_col, int16_t *conv_row, uint8_t size) |
| Separate a 2D convolution into two 1D convolutions. More...
|
|
uint32_t | calculate_matrix_scale (const int16_t *matrix, unsigned int matrix_size) |
| Calculate the scale of the given square matrix. More...
|
|
std::pair< DataType, DataType > | data_type_for_convolution (const int16_t *conv_col, const int16_t *conv_row, size_t size) |
| Calculate accurary required by the horizontal and vertical convolution computations. More...
|
|
DataType | data_type_for_convolution_matrix (const int16_t *conv, size_t size) |
| Calculate the accuracy required by the squared convolution calculation. More...
|
|
const std::pair< unsigned int, unsigned int > | scaled_dimensions (unsigned int width, unsigned int height, unsigned int kernel_size, unsigned int stride_x, unsigned int stride_y, unsigned int pad_x, unsigned int pad_y, DimensionRoundingType round_type) |
| Returns expected width and height of output scaled tensor depending on dimensions rounding mode. More...
|
|
const std::string & | string_from_format (Format format) |
| Convert a tensor format into a string. More...
|
|
const std::string & | string_from_channel (Channel channel) |
| Convert a channel identity into a string. More...
|
|
const std::string & | string_from_data_type (DataType dt) |
| Convert a data type identity into a string. More...
|
|
const std::string & | string_from_matrix_pattern (MatrixPattern pattern) |
| Convert a matrix pattern into a string. More...
|
|
const std::string & | string_from_activation_func (ActivationLayerInfo::ActivationFunction act) |
| Translates a given activation function to a string. More...
|
|
const std::string & | string_from_non_linear_filter_function (NonLinearFilterFunction function) |
| Translates a given non linear function to a string. More...
|
|
const std::string & | string_from_interpolation_policy (InterpolationPolicy policy) |
| Translates a given interpolation policy to a string. More...
|
|
const std::string & | string_from_border_mode (BorderMode border_mode) |
| Translates a given border mode policy to a string. More...
|
|
std::string | lower_string (std::string val) |
| Lower a given string. More...
|
|
bool | is_data_type_float (DataType dt) |
|
template<typename T > |
void | print_consecutive_elements_impl (std::ostream &s, const T *ptr, unsigned int n, int stream_width=0, const std::string &element_delim=" ") |
| Print consecutive elements to an output stream. More...
|
|
template<typename T > |
int | max_consecutive_elements_display_width_impl (std::ostream &s, const T *ptr, unsigned int n) |
| Identify the maximum width of n consecutive elements. More...
|
|
void | print_consecutive_elements (std::ostream &s, DataType dt, const uint8_t *ptr, unsigned int n, int stream_width, const std::string &element_delim=" ") |
| Print consecutive elements to an output stream. More...
|
|
int | max_consecutive_elements_display_width (std::ostream &s, DataType dt, const uint8_t *ptr, unsigned int n) |
| Identify the maximum width of n consecutive elements. More...
|
|