23.08
|
Class for specifying the size of an image or rectangle. More...
#include <Size2D.h>
Public Member Functions | |
Size2D ()=default | |
Default constructor. More... | |
Size2D (size_t w, size_t h) noexcept | |
Constructor. More... | |
size_t | area () const |
The area of the image or rectangle calculated as (width * height) More... | |
bool | operator== (const Size2D &other) const |
bool | operator!= (const Size2D &other) const |
std::string | to_string () const |
size_t | x () const |
Semantic accessor for width as x. More... | |
size_t | y () const |
Semantic accessor for height as y. More... | |
Data Fields | |
size_t | width = {} |
Width of the image region or rectangle. More... | |
size_t | height = {} |
Height of the image region or rectangle. More... | |
|
default |
Default constructor.
|
inlinenoexcept |
|
inline |
The area of the image or rectangle calculated as (width * height)
Definition at line 54 of file Size2D.h.
References Size2D::height, and Size2D::width.
Referenced by arm_compute::misc::shape_calculator::compute_col2im_shape(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_input_transform_shape(), and arm_compute::test::validation::reference::winograd_filter_transform().
|
inline |
|
inline |
Definition at line 59 of file Size2D.h.
References Size2D::height, and Size2D::width.
std::string to_string | ( | ) | const |
Definition at line 29 of file Size2D.cpp.
References Size2D::height, arm_compute::support::cpp11::to_string(), and Size2D::width.
Referenced by ClWinogradFilterTransformKernel::configure(), ClWinogradInputTransformKernel::configure(), and ClWinogradOutputTransformKernel::configure().
|
inline |
Semantic accessor for width as x.
Definition at line 75 of file Size2D.h.
References Size2D::width.
Referenced by arm_compute::calculate_same_pad(), arm_compute::misc::shape_calculator::compute_space_to_batch_shape(), CpuPool2dKernel::configure(), ClWinogradOutputTransformKernel::configure(), CLSpaceToBatchLayerKernel::configure(), NEFFTConvolutionLayer::configure(), CLFFTConvolutionLayer::configure(), arm_compute::experimental::dynamic_fusion::convert_pool_attr_to_pool_info(), arm_compute::test::validation::reference::convolution_layer_nchw(), NESpaceToBatchLayerKernel::run(), arm_compute::scaled_dimensions(), CLDepthwiseConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), and CLFFTConvolutionLayer::validate().
|
inline |
Semantic accessor for height as y.
Definition at line 84 of file Size2D.h.
References Size2D::height.
Referenced by arm_compute::calculate_same_pad(), arm_compute::misc::shape_calculator::compute_space_to_batch_shape(), CpuPool2dKernel::configure(), ClWinogradOutputTransformKernel::configure(), CLSpaceToBatchLayerKernel::configure(), NEFFTConvolutionLayer::configure(), CLFFTConvolutionLayer::configure(), arm_compute::experimental::dynamic_fusion::convert_pool_attr_to_pool_info(), arm_compute::test::validation::reference::convolution_layer_nchw(), NESpaceToBatchLayerKernel::run(), arm_compute::scaled_dimensions(), CLDepthwiseConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), and CLFFTConvolutionLayer::validate().
size_t height = {} |
Height of the image region or rectangle.
Definition at line 91 of file Size2D.h.
Referenced by GraphBuilder::add_convolution_node(), GraphBuilder::add_deconvolution_node(), GraphBuilder::add_depthwise_convolution_node(), Size2D::area(), arm_compute::cl_winograd_convolution_layer_supported(), arm_compute::misc::shape_calculator::compute_col2im_shape(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_input_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_output_transform_shape(), ClPool2dKernel::configure(), CpuPool2dKernel::configure(), CpuPool2d::configure(), ClWinogradFilterTransformKernel::configure(), ClWinogradInputTransformKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClIm2ColKernel::configure(), CpuIm2ColKernel::configure(), arm_compute::test::validation::reference::im2col_nchw(), arm_compute::test::validation::reference::im2col_nhwc(), arm_compute::operator<<(), Size2D::operator==(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc_kernel_indices(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), Size2D::to_string(), CpuPool2dKernel::validate(), arm_compute::test::validation::reference::winograd_filter_transform(), arm_compute::test::validation::reference::winograd_input_transform(), arm_compute::test::validation::reference::winograd_output_transform(), and Size2D::y().
size_t width = {} |
Width of the image region or rectangle.
Definition at line 90 of file Size2D.h.
Referenced by GraphBuilder::add_convolution_node(), GraphBuilder::add_deconvolution_node(), GraphBuilder::add_depthwise_convolution_node(), Size2D::area(), arm_compute::cl_winograd_convolution_layer_supported(), arm_compute::misc::shape_calculator::compute_col2im_shape(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_input_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_output_transform_shape(), ClPool2dKernel::configure(), CpuPool2dKernel::configure(), CpuPool2d::configure(), ClWinogradInputTransformKernel::configure(), ClWinogradFilterTransformKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClCol2ImKernel::configure(), ClIm2ColKernel::configure(), CpuIm2ColKernel::configure(), arm_compute::test::validation::reference::im2col_nchw(), arm_compute::test::validation::reference::im2col_nhwc(), arm_compute::operator<<(), Size2D::operator==(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc_kernel_indices(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CpuPool2dKernel::run_op(), Size2D::to_string(), CpuPool2dKernel::validate(), arm_compute::test::validation::reference::winograd_filter_transform(), arm_compute::test::validation::reference::winograd_input_transform(), arm_compute::test::validation::reference::winograd_output_transform(), and Size2D::x().