21.02
|
Padding and stride information class. More...
#include <Types.h>
Public Member Functions | |
PadStrideInfo (unsigned int stride_x=1, unsigned int stride_y=1, unsigned int pad_x=0, unsigned int pad_y=0, DimensionRoundingType round=DimensionRoundingType::FLOOR) | |
Constructor. More... | |
PadStrideInfo (unsigned int stride_x, unsigned int stride_y, unsigned int pad_left, unsigned int pad_right, unsigned int pad_top, unsigned int pad_bottom, DimensionRoundingType round) | |
Constructor. More... | |
std::pair< unsigned int, unsigned int > | stride () const |
Get the stride. More... | |
bool | padding_is_symmetric () const |
Check whether the padding is symmetric. More... | |
std::pair< unsigned int, unsigned int > | pad () const |
Get the padding. More... | |
unsigned int | pad_left () const |
Get the left padding. More... | |
unsigned int | pad_right () const |
Get the right padding. More... | |
unsigned int | pad_top () const |
Get the top padding. More... | |
unsigned int | pad_bottom () const |
Get the bottom padding. More... | |
DimensionRoundingType | round () const |
Get the rounding type. More... | |
bool | has_padding () const |
Check whether this has any padding. More... | |
|
inline |
Constructor.
[in] | stride_x | (Optional) Stride, in elements, across x. Defaults to 1. |
[in] | stride_y | (Optional) Stride, in elements, across y. Defaults to 1. |
[in] | pad_x | (Optional) Padding, in elements, across x. Defaults to 0. |
[in] | pad_y | (Optional) Padding, in elements, across y. Defaults to 0. |
[in] | round | (Optional) Dimensions rounding. Defaults to FLOOR. |
Definition at line 733 of file Types.h.
|
inline |
Constructor.
[in] | stride_x | Stride, in elements, across x. |
[in] | stride_y | Stride, in elements, across y. |
[in] | pad_left | Padding across x on the left, in elements. |
[in] | pad_top | Padding across y on the top, in elements. |
[in] | pad_right | Padding across x on the right, in elements. |
[in] | pad_bottom | Padding across y on the bottom, in elements. |
[in] | round | Dimensions rounding. |
Definition at line 754 of file Types.h.
|
inline |
Check whether this has any padding.
Definition at line 823 of file Types.h.
Referenced by GCIm2ColKernel::configure(), and CpuPoolingAssemblyWrapperKernel::validate().
|
inline |
Get the padding.
Definition at line 788 of file Types.h.
References ARM_COMPUTE_ERROR_ON.
Referenced by GCPoolingLayerKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), arm_compute::test::validation::reference::im2col_nchw(), arm_compute::test::validation::reference::im2col_nhwc(), and GCPoolingLayerKernel::run().
|
inline |
Get the bottom padding.
Definition at line 811 of file Types.h.
Referenced by arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), NEDirectConvolutionLayerKernel::configure(), GCIm2ColKernel::configure(), NEFFTConvolutionLayer::configure(), CLFFTConvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), arm_compute::test::validation::reference::conv2d_dft(), arm_compute::test::validation::reference::deconvolution_layer(), arm_compute::deconvolution_output_dimensions(), NEConvolutionLayer::get_convolution_method(), CLConvolutionLayer::get_convolution_method(), CpuPoolingAssemblyWrapperKernel::is_configured(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), arm_compute::operator<<(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CPPUpsampleKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), arm_compute::scaled_dimensions(), NEWinogradConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), CLWinogradConvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), and CLFFTConvolutionLayer::validate().
|
inline |
Get the left padding.
Definition at line 796 of file Types.h.
Referenced by arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), ClPoolingKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), NEDirectConvolutionLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), GCIm2ColKernel::configure(), NEWinogradConvolutionLayer::configure(), NEFFTConvolutionLayer::configure(), CLDirectConvolutionLayerKernel::configure(), CLFFTConvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), arm_compute::test::validation::reference::conv2d_dft(), arm_compute::test::validation::reference::convolution_layer_nchw(), arm_compute::test::validation::reference::deconvolution_layer(), arm_compute::deconvolution_output_dimensions(), NEConvolutionLayer::get_convolution_method(), CLConvolutionLayer::get_convolution_method(), CpuPoolingAssemblyWrapperKernel::is_configured(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), arm_compute::operator<<(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CPPUpsampleKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), CLDirectConvolutionLayerKernel::run(), ClPoolingKernel::run_op(), arm_compute::scaled_dimensions(), NEWinogradConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), CLWinogradConvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), and CLFFTConvolutionLayer::validate().
|
inline |
Get the right padding.
Definition at line 801 of file Types.h.
Referenced by arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), NEDirectConvolutionLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), GCIm2ColKernel::configure(), NEFFTConvolutionLayer::configure(), CLFFTConvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), arm_compute::test::validation::reference::conv2d_dft(), arm_compute::test::validation::reference::deconvolution_layer(), arm_compute::deconvolution_output_dimensions(), NEConvolutionLayer::get_convolution_method(), CLConvolutionLayer::get_convolution_method(), CpuPoolingAssemblyWrapperKernel::is_configured(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), arm_compute::operator<<(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CPPUpsampleKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), arm_compute::scaled_dimensions(), NEWinogradConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), CLWinogradConvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), and CLFFTConvolutionLayer::validate().
|
inline |
Get the top padding.
Definition at line 806 of file Types.h.
Referenced by arm_compute::misc::shape_calculator::compute_unpool_shape(), arm_compute::compute_winograd_convolution_tiles(), ClPoolingKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), NEDirectConvolutionLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), GCIm2ColKernel::configure(), NEWinogradConvolutionLayer::configure(), NEFFTConvolutionLayer::configure(), CLDirectConvolutionLayerKernel::configure(), CLFFTConvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), arm_compute::test::validation::reference::conv2d_dft(), arm_compute::test::validation::reference::convolution_layer_nchw(), arm_compute::test::validation::reference::deconvolution_layer(), arm_compute::deconvolution_output_dimensions(), NEConvolutionLayer::get_convolution_method(), CLConvolutionLayer::get_convolution_method(), CpuPoolingAssemblyWrapperKernel::is_configured(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), arm_compute::operator<<(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CPPUpsampleKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), CLDirectConvolutionLayerKernel::run(), ClPoolingKernel::run_op(), arm_compute::scaled_dimensions(), NEWinogradConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), CLWinogradConvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), and CLFFTConvolutionLayer::validate().
|
inline |
Check whether the padding is symmetric.
Definition at line 778 of file Types.h.
Referenced by GCDirectConvolutionLayerKernel< kernel_size >::configure().
|
inline |
Get the rounding type.
Definition at line 817 of file Types.h.
Referenced by arm_compute::scaled_dimensions().
|
inline |
Get the stride.
Definition at line 770 of file Types.h.
Referenced by arm_compute::calculate_same_pad(), arm_compute::misc::shape_calculator::compute_unpool_shape(), CpuPoolingKernel::configure(), ClPoolingKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), GCPoolingLayerKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), GCIm2ColKernel::configure(), CLDirectConvolutionLayerKernel::configure(), NEDeconvolutionLayer::configure(), GCConvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), NEGEMMConvolutionLayer::configure(), CLGEMMConvolutionLayer::configure(), arm_compute::test::validation::reference::convolution_layer_nchw(), arm_compute::test::validation::reference::deconvolution_layer(), arm_compute::deconvolution_output_dimensions(), NEConvolutionLayer::get_convolution_method(), CLConvolutionLayer::get_convolution_method(), CLDeconvolutionLayer::get_deconvolution_method(), arm_compute::test::validation::reference::im2col_nchw(), arm_compute::test::validation::reference::im2col_nhwc(), CpuPoolingAssemblyWrapperKernel::is_configured(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), arm_compute::operator<<(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), CPPUpsampleKernel::run(), GCPoolingLayerKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), ClPoolingKernel::run_op(), arm_compute::scaled_dimensions(), NEFFTConvolutionLayer::validate(), NEDeconvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), CLFFTConvolutionLayer::validate(), CLDirectDeconvolutionLayer::validate(), NEGEMMConvolutionLayer::validate(), and CLGEMMConvolutionLayer::validate().