21.02
|
Iterator updated by execute_window_loop for each window element. More...
#include <Helpers.h>
Public Member Functions | |
constexpr | Iterator () |
Default constructor to create an empty iterator. More... | |
Iterator (const ITensor *tensor, const Window &window) | |
Create a container iterator for the metadata and allocation contained in the ITensor. More... | |
void | increment (size_t dimension) |
Increment the iterator along the specified dimension of the step value associated to the dimension. More... | |
constexpr size_t | offset () const |
Return the offset in bytes from the first element to the current position of the iterator. More... | |
constexpr uint8_t * | ptr () const |
Return a pointer to the current pixel. More... | |
void | reset (size_t dimension) |
Move the iterator back to the beginning of the specified dimension. More... | |
Iterator updated by execute_window_loop for each window element.
|
inline |
Default constructor to create an empty iterator.
Definition at line 90 of file Helpers.inl.
Create a container iterator for the metadata and allocation contained in the ITensor.
[in] | tensor | The tensor to associate to the iterator. |
[in] | window | The window which will be used to iterate over the tensor. |
Definition at line 95 of file Helpers.inl.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_WINDOW_DIMENSIONS_GTE, ITensor::buffer(), ITensor::info(), arm_compute::test::validation::info, and Dimensions< int >::num_max_dimensions.
|
inline |
Increment the iterator along the specified dimension of the step value associated to the dimension.
[in] | dimension | Dimension to increment |
Definition at line 122 of file Helpers.inl.
References ARM_COMPUTE_ERROR_ON, and Dimensions< int >::num_max_dimensions.
Referenced by NEGaussianPyramidVertKernel::run(), and NESeparableConvolutionVertKernel< matrix_size >::run().
|
inline |
Return the offset in bytes from the first element to the current position of the iterator.
Definition at line 134 of file Helpers.inl.
Referenced by calculate_kernel(), NENonLinearFilterKernel::configure(), NEIntegralImageKernel::run(), NEGaussian3x3Kernel::run(), NEMedian3x3Kernel::run(), NEFastCornersKernel::run(), NESobel3x3Kernel::run(), NEScharr3x3Kernel::run(), NEGaussianPyramidVertKernel::run(), NEGaussian5x5VertKernel::run(), NESobel5x5VertKernel::run(), NESeparableConvolutionVertKernel< matrix_size >::run(), CpuFillKernel::run_op(), CpuConcatenateHeightKernel::run_op(), CpuConcatenateWidthKernel::run_op(), and NEFillBorderKernel::run_op().
|
inline |
Return a pointer to the current pixel.
Definition at line 139 of file Helpers.inl.
Referenced by arm_compute::cpu::add_qasymm8_neon(), arm_compute::cpu::add_qasymm8_signed_neon(), arm_compute::cpu::add_qsymm16_neon(), arm_compute::cpu::add_s16_u8_s16_neon(), arm_compute::cpu::add_same_neon(), arm_compute::cpu::add_u8_u8_s16_neon(), calculate_kernel(), arm_compute::colorconvert_rgb_to_iyuv(), arm_compute::colorconvert_rgb_to_nv12(), arm_compute::colorconvert_rgb_to_rgbx(), arm_compute::colorconvert_rgb_to_u8(), arm_compute::colorconvert_rgb_to_yuv4(), arm_compute::colorconvert_rgbx_to_rgb(), arm_compute::colorconvert_yuyv_to_iyuv(), arm_compute::colorconvert_yuyv_to_nv12(), arm_compute::colorconvert_yuyv_to_rgb(), arm_compute::utils::compare_tensor(), INEWarpKernel::configure(), NENormalizationLayerKernel::configure(), NEDerivativeKernel::configure(), NEMagnitudePhaseKernel< mag_type, phase_type >::configure(), NEMaxUnpoolingLayerKernel::configure(), NENonLinearFilterKernel::configure(), NEScaleKernel::configure(), NEConvolutionKernel< matrix_size >::configure(), ITensor::copy_from(), arm_compute::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_op(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), arm_compute::utils::fill_tensor_vector(), arm_compute::cpu::fp32_neon_activation(), arm_compute::utils::load_trained_data(), arm_compute::cpu::nearest_neon_scale(), NEGatherKernel::NEGatherKernel(), arm_compute::cpu::neon_logits_1d_max(), arm_compute::cpu::neon_softmax_logits_1d_float(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), arm_compute::cpu::qsymm16_neon_activation(), CLMinMaxLayerKernel::reset(), NEMinMaxLayerKernel::reset(), NEIntegralImageKernel::run(), NEDilateKernel::run(), NEErodeKernel::run(), NEGaussian3x3Kernel::run(), NEGaussianPyramidHorKernel::run(), NEMedian3x3Kernel::run(), NEGaussian5x5HorKernel::run(), CPPUpsampleKernel::run(), NEHOGOrientationBinningKernel::run(), NEFastCornersKernel::run(), NENonMaximaSuppression3x3Kernel::run(), NESobel5x5HorKernel::run(), NESobel7x7HorKernel::run(), NEGradientKernel::run(), CPPCornerCandidatesKernel::run(), NETileKernel::run(), NEConvertQuantizedSignednessKernel::run(), NESpaceToDepthLayerKernel::run(), NEDepthToSpaceLayerKernel::run(), NEFFTScaleKernel::run(), NESobel3x3Kernel::run(), NEReorgLayerKernel::run(), NEScharr3x3Kernel::run(), NEMinMaxLayerKernel::run(), NEFFTRadixStageKernel::run(), NEStackLayerKernel::run(), NEDepthConvertLayerKernel::run(), NEBatchToSpaceLayerKernel::run(), NEHarrisScoreKernel< block_size >::run(), NESpaceToBatchLayerKernel::run(), NEGaussianPyramidVertKernel::run(), NEGaussian5x5VertKernel::run(), NEWeightsReshapeKernel::run(), NEGEMMTranspose1xWKernel::run(), NEAccumulateWeightedKernel::run(), NESobel5x5VertKernel::run(), NESobel7x7VertKernel::run(), NEHOGBlockNormalizationKernel::run(), NEEdgeNonMaxSuppressionKernel::run(), NESeparableConvolutionHorKernel< matrix_size >::run(), NEAccumulateSquaredKernel::run(), NEEdgeTraceKernel::run(), NESeparableConvolutionVertKernel< matrix_size >::run(), NEConvolutionRectangleKernel::run(), CpuCopyKernel::run_op(), CpuConcatenateHeightKernel::run_op(), CpuConcatenateWidthKernel::run_op(), CpuFloorKernel::run_op(), NEFillBorderKernel::run_op(), arm_compute::run_reverse(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), arm_compute::cpu::sub_qsymm16_neon(), arm_compute::cpu::sub_same_neon(), arm_compute::cpu::sub_u8_u8_s16_neon(), arm_compute::test::validation::TEST_CASE(), NEThresholdKernel::validate(), NEComputeAllAnchorsKernel::validate(), NEQuantizationLayerKernel::validate(), NEFFTDigitReverseKernel::validate(), NEConvertFullyConnectedWeightsKernel::validate(), NEBoundingBoxTransformKernel::validate(), NEGEMMInterleave4x4Kernel::validate(), NEGEMMLowpMatrixAReductionKernel::validate(), and NEGEMMLowpMatrixBReductionKernel::validate().
|
inline |
Move the iterator back to the beginning of the specified dimension.
[in] | dimension | Dimension to reset |
Definition at line 144 of file Helpers.inl.
References ARM_COMPUTE_ERROR_ON, and Dimensions< int >::num_max_dimensions.