24.02
|
Container for 2D border size. More...
#include <Types.h>
Public Member Functions | |
constexpr | BorderSize () noexcept |
Empty border, i.e. More... | |
constexpr | BorderSize (unsigned int size) noexcept |
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... | |
bool | operator== (const BorderSize &rhs) const |
Check equality with another BorderSize struct. More... | |
bool | operator!= (const BorderSize &rhs) const |
Check non-equality with another BorderSize struct. 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... | |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Check if the entire border is zero.
Definition at line 264 of file Types.h.
References BorderSize::bottom, BorderSize::left, BorderSize::right, and BorderSize::top.
Referenced by CLFillBorderKernel::configure(), TensorInfo::has_padding(), and NEFillBorderKernel::run().
|
inline |
Limit this border size.
[in] | limit | Border size to limit this border size to. |
Definition at line 331 of file Types.h.
References BorderSize::bottom, BorderSize::left, BorderSize::right, and BorderSize::top.
Referenced by NEFillBorderKernel::configure(), and CLFillBorderKernel::configure().
|
inline |
Check non-equality with another BorderSize struct.
[in] | rhs | other struct to check against |
|
inline |
Scale a copy of this border size.
[in] | scale | Scale to multiply border size by. |
Definition at line 297 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 281 of file Types.h.
References BorderSize::bottom, BorderSize::left, BorderSize::right, arm_compute::test::validation::scale, and BorderSize::top.
|
inline |
Check equality with another BorderSize struct.
[in] | rhs | other struct to check against |
Definition at line 311 of file Types.h.
References BorderSize::bottom, BorderSize::left, BorderSize::right, and BorderSize::top.
|
inlineconstexpr |
Check if the border is the same size on all sides.
Definition at line 270 of file Types.h.
References BorderSize::bottom, BorderSize::left, BorderSize::right, and BorderSize::top.
unsigned int bottom |
bottom of the border
Definition at line 341 of file Types.h.
Referenced by arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), CLFillBorderKernel::configure(), BorderSize::empty(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), BorderSize::operator*=(), arm_compute::operator<<(), BorderSize::operator==(), NEFillBorderKernel::run(), ClGemm::run(), BorderSize::uniform(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().
unsigned int left |
left of the border
Definition at line 342 of file Types.h.
Referenced by arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), CLFillBorderKernel::configure(), BorderSize::empty(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), BorderSize::operator*=(), arm_compute::operator<<(), BorderSize::operator==(), CpuDepthwiseConv2dAssemblyDispatch::prepare(), NEFFTRadixStageKernel::run(), NEFillBorderKernel::run(), BorderSize::uniform(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().
unsigned int right |
right of the border
Definition at line 340 of file Types.h.
Referenced by arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), ClIndirectConv2dKernel::configure(), CLFillBorderKernel::configure(), BorderSize::empty(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), BorderSize::operator*=(), arm_compute::operator<<(), BorderSize::operator==(), NEFFTRadixStageKernel::run(), NEFillBorderKernel::run(), BorderSize::uniform(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().
unsigned int top |
top of the border
Definition at line 339 of file Types.h.
Referenced by BorderSize::BorderSize(), arm_compute::calculate_max_enlarged_window(), arm_compute::calculate_max_window(), arm_compute::calculate_max_window_horizontal(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), CLFillBorderKernel::configure(), BorderSize::empty(), SubTensorInfo::extend_padding(), TensorInfo::extend_padding(), AssetsLibrary::fill_borders_with_garbage(), BorderSize::limit(), BorderSize::operator*=(), arm_compute::operator<<(), BorderSize::operator==(), NEFillBorderKernel::run(), ClGemm::run(), BorderSize::uniform(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowStatic::update_padding_if_needed(), AccessWindowRectangle::update_window_if_needed(), and arm_compute::test::validation::validate().