21.05
|
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.
|
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 CpuFillKernel::run_op(), CpuConcatenateHeightKernel::run_op(), and CpuConcatenateWidthKernel::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(), arm_compute::cpu::bilinear_neon_scale(), 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(), 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(), IImageLoader::fill_image(), IImageLoader::fill_planar_tensor(), arm_compute::utils::fill_random_tensor(), arm_compute::utils::fill_tensor_value(), arm_compute::utils::fill_tensor_vector(), arm_compute::cpu::fp32_neon_activation(), arm_compute::utils::load_trained_data(), arm_compute::cpu::nearest_neon_scale(), arm_compute::cpu::neon_logits_1d_max(), arm_compute::cpu::neon_softmax_logits_1d_float(), arm_compute::cpu::neon_softmax_logits_1d_quantized(), 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(), CPPUpsampleKernel::run(), NETileKernel::run(), NEConvertQuantizedSignednessKernel::run(), NEDepthToSpaceLayerKernel::run(), NESpaceToDepthLayerKernel::run(), NEFFTScaleKernel::run(), NEReorgLayerKernel::run(), NEMinMaxLayerKernel::run(), NEFFTRadixStageKernel::run(), NEStackLayerKernel::run(), NEDepthConvertLayerKernel::run(), NEBatchToSpaceLayerKernel::run(), NESpaceToBatchLayerKernel::run(), NEWeightsReshapeKernel::run(), NEGEMMTranspose1xWKernel::run(), CpuCopyKernel::run_op(), CpuConcatenateHeightKernel::run_op(), CpuConcatenateWidthKernel::run_op(), CpuFloorKernel::run_op(), arm_compute::run_reverse(), arm_compute::utils::save_to_npy(), arm_compute::utils::save_to_ppm(), 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(), and arm_compute::test::validation::TEST_CASE().
|
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.