Compute Library
18.05
|
Container for 2D border size. More...
#include <Types.h>
Public Member Functions | |
constexpr | BorderSize () |
Empty border, i.e. More... | |
constexpr | BorderSize (unsigned int size) |
Border with equal size around the 2D plane. More... | |
constexpr | BorderSize (unsigned int top_bottom, unsigned int left_right) |
Border with same size for top/bottom and left/right. More... | |
constexpr | BorderSize (unsigned int top, unsigned int right, unsigned int bottom, unsigned int left) |
Border with different sizes. More... | |
constexpr bool | empty () const |
Check if the entire border is zero. More... | |
constexpr bool | uniform () const |
Check if the border is the same size on all sides. More... | |
BorderSize & | operator*= (float scale) |
Scale this border size. More... | |
BorderSize | operator* (float scale) |
Scale a copy of this border size. More... | |
void | limit (const BorderSize &limit) |
Limit this border size. More... | |
Data Fields | |
unsigned int | top |
top of the border More... | |
unsigned int | right |
right of the border More... | |
unsigned int | bottom |
bottom of the border More... | |
unsigned int | left |
left of the border More... | |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Check if the entire border is zero.
Definition at line 318 of file Types.h.
Referenced by NumPyBinLoader::access_tensor(), TensorInfo::has_padding(), and RandomAccessor::RandomAccessor().
|
inline |
Limit this border size.
[in] | limit | Border size to limit this border size to. |
Definition at line 363 of file Types.h.
References BorderSize::bottom, BorderSize::left, arm_compute::test::fixed_point_arithmetic::detail::min(), BorderSize::right, and BorderSize::top.
|
inline |
Scale a copy of this border size.
[in] | scale | Scale to multiply border size by. |
Definition at line 351 of file Types.h.
References arm_compute::test::validation::scale.
|
inline |
Scale this border size.
[in] | scale | Scale to multiply border size by. |
Definition at line 335 of file Types.h.
References arm_compute::test::validation::scale.
|
inline |
unsigned int bottom |
bottom of the border
Definition at line 373 of file Types.h.
Referenced by AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::operator<<(), and arm_compute::test::validation::validate().
unsigned int left |
left of the border
Definition at line 374 of file Types.h.
Referenced by AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::operator<<(), and arm_compute::test::validation::validate().
unsigned int right |
right of the border
Definition at line 372 of file Types.h.
Referenced by AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::operator<<(), and arm_compute::test::validation::validate().
unsigned int top |
top of the border
Definition at line 371 of file Types.h.
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), arm_compute::operator<<(), and arm_compute::test::validation::validate().