Compute Library
 19.08
ITensor Class Referenceabstract

Interface for NEON tensor. More...

#include <ITensor.h>

Public Member Functions

virtual ITensorInfoinfo () const =0
 Interface to be implemented by the child class to return the tensor's metadata. More...
 
virtual ITensorInfoinfo ()=0
 Interface to be implemented by the child class to return the tensor's metadata. More...
 
virtual ~ITensor ()=default
 Default virtual destructor. More...
 
virtual uint8_t * buffer () const =0
 Interface to be implemented by the child class to return a pointer to CPU memory. More...
 
uint8_t * ptr_to_element (const Coordinates &id) const
 Return a pointer to the element at the passed coordinates. More...
 
void copy_from (const ITensor &src)
 Copy the content of another tensor. More...
 
void print (std::ostream &s, IOFormatInfo io_fmt=IOFormatInfo()) const
 Print a tensor to a given stream using user defined formatting information. More...
 
bool is_used () const
 Flags if the tensor is used or not. More...
 
void mark_as_unused () const
 Marks a tensor as unused. More...
 

Detailed Description

Interface for NEON tensor.

Definition at line 36 of file ITensor.h.

Constructor & Destructor Documentation

◆ ~ITensor()

virtual ~ITensor ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ buffer()

◆ copy_from()

void copy_from ( const ITensor src)

Copy the content of another tensor.

Note
The number of dimensions of the source tensor must be less or equal to those of the destination tensor.
All dimensions of the destination tensor must be greater or equal to the source tensor ones.
num_channels() and element_size() of both tensors must match.
Parameters
[in]srcSource tensor to copy from.

Definition at line 35 of file ITensor.cpp.

36 {
37  if(&src == this)
38  {
39  return;
40  }
41 
42  const ITensorInfo *src_info = src.info();
43  ITensorInfo *dst_info = this->info();
44 
45  ARM_COMPUTE_ERROR_ON(src_info->num_dimensions() > dst_info->num_dimensions());
48 
49  for(size_t d = 0; d < src_info->num_dimensions(); d++)
50  {
52  }
53 
54  // Copy information about valid region
56 
57  Window win_src;
59  Window win_dst;
60  win_dst.use_tensor_dimensions(dst_info->tensor_shape(), Window::DimY);
61 
62  Iterator src_it(&src, win_src);
63  Iterator dst_it(this, win_dst);
64 
65  const size_t line_size = src_info->element_size() * src_info->dimension(0);
66 
67  execute_window_loop(win_src, [&](const Coordinates &)
68  {
69  memcpy(dst_it.ptr(), src_it.ptr(), line_size);
70  },
71  src_it, dst_it);
72 }
virtual size_t num_dimensions() const =0
The number of dimensions of the tensor (rank)
virtual size_t dimension(size_t index) const =0
Return the size of the requested dimension.
ValidRegion valid_region() const override
Valid region of the tensor.
Definition: TensorInfo.h:285
size_t num_channels() const override
The number of channels for each tensor element.
Definition: TensorInfo.h:248
size_t dimension(size_t index) const override
Return the size of the requested dimension.
Definition: TensorInfo.h:223
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Definition: Error.h:337
Store the tensor's metadata.
Definition: ITensorInfo.h:40
void use_tensor_dimensions(const TensorShape &shape, size_t first_dimension=Window::DimX)
Use the tensor's dimensions to fill the window dimensions.
Definition: Window.inl:250
virtual void set_valid_region(const ValidRegion &valid_region)=0
Set the valid region of the tensor.
size_t num_dimensions() const override
The number of dimensions of the tensor (rank)
Definition: TensorInfo.h:244
virtual const TensorShape & tensor_shape() const =0
Size for each dimension of the tensor.
Coordinates of an item.
Definition: Coordinates.h:37
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
virtual size_t element_size() const =0
Element size in bytes calculated as data_size() * num_channels()
TensorInfo src_info(src_shape, 1, data_type)
static constexpr size_t DimY
Alias for dimension 1 also known as Y dimension.
Definition: Window.h:45
void execute_window_loop(const Window &w, L &&lambda_function, Ts &&... iterators)
Iterate through the passed window, automatically adjusting the iterators and calling the lambda_funct...
Definition: Helpers.inl:122
const TensorShape & tensor_shape() const override
Size for each dimension of the tensor.
Definition: TensorInfo.h:252
Iterator updated by execute_window_loop for each window element.
Definition: Helpers.h:318
size_t element_size() const override
Element size in bytes calculated as data_size() * num_channels()
Definition: TensorInfo.h:240
Describe a multidimensional execution window.
Definition: Window.h:39
virtual size_t num_channels() const =0
The number of channels for each tensor element.
cast configure & src
Definition: Cast.cpp:169

References ARM_COMPUTE_ERROR_ON, ITensorInfo::dimension(), TensorInfo::dimension(), Window::DimY, ITensorInfo::element_size(), TensorInfo::element_size(), arm_compute::execute_window_loop(), ITensor::info(), ITensorInfo::num_channels(), TensorInfo::num_channels(), ITensorInfo::num_dimensions(), TensorInfo::num_dimensions(), Iterator::ptr(), ITensorInfo::set_valid_region(), arm_compute::test::validation::src, arm_compute::test::validation::src_info, ITensorInfo::tensor_shape(), TensorInfo::tensor_shape(), Window::use_tensor_dimensions(), and TensorInfo::valid_region().

◆ info() [1/2]

virtual ITensorInfo* info ( ) const
pure virtual

Interface to be implemented by the child class to return the tensor's metadata.

Returns
A pointer to the tensor's metadata.

Implemented in CLSubTensor, GCTensor, CLTensor, SubTensor, and Tensor.

Referenced by NumPyAccessor::access_tensor(), ImageAccessor::access_tensor(), ValidationInputAccessor::access_tensor(), ValidationOutputAccessor::access_tensor(), DetectionOutputAccessor::access_tensor(), TopNPredictionsAccessor::access_tensor(), RandomAccessor::access_tensor(), ICLKernel::add_tensor_argument(), CLElementwiseOperationKernel::border_size(), CLComparisonKernel::border_size(), CLPixelWiseMultiplicationKernel::border_size(), NEPixelWiseMultiplicationKernel::border_size(), NEArithmeticSubtractionKernel::border_size(), CLComplexPixelWiseMultiplicationKernel::border_size(), NEComplexPixelWiseMultiplicationKernel::border_size(), IGCTensor::clear(), ICLTensor::clear(), CLSubTensor::CLSubTensor(), arm_compute::utils::compare_tensor(), GCLogits1DMaxKernel::configure(), CLIntegralImageHorKernel::configure(), CLWarpPerspectiveKernel::configure(), CLMedian3x3Kernel::configure(), CLElementWiseUnaryLayerKernel::configure(), CLDilateKernel::configure(), CLErodeKernel::configure(), CLGaussian3x3Kernel::configure(), CLBox3x3Kernel::configure(), GCTransposeKernel::configure(), CLNonMaximaSuppression3x3Kernel::configure(), NEFloorKernel::configure(), NEIntegralImageKernel::configure(), CLTransposeKernel::configure(), CLWarpAffineKernel::configure(), NEReshapeLayerKernel::configure(), GCScaleKernel::configure(), NEBox3x3Kernel::configure(), NEDilateKernel::configure(), NEErodeKernel::configure(), NEGaussian3x3Kernel::configure(), CLScaleKernel::configure(), NEMedian3x3Kernel::configure(), CLComparison::configure(), NELogits1DMaxKernel::configure(), NEGaussian5x5HorKernel::configure(), CLPoolingLayer::configure(), CLScale::configure(), NEUpsampleLayer::configure(), CLPixelWiseMultiplication::configure(), NEAccumulateKernel::configure(), CLNonLinearFilterKernel::configure(), CLGEMMMatrixAccumulateBiasesKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), GCGEMMMatrixAccumulateBiasesKernel::configure(), NEArithmeticSubtraction::configure(), NEPixelWiseMultiplication::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLGEMMMatrixVectorMultiplyKernel::configure(), CLReduceMean::configure(), CLDequantizationLayerKernel::configure(), CLSplit::configure(), NEGEMMLowpAssemblyMatrixMultiplyCore::configure(), NEReduceMean::configure(), NESplit::configure(), CLMinMaxLayerKernel::configure(), CLFlattenLayerKernel::configure(), CLFloorKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLRNNLayer::configure(), CPPDetectionOutputLayer::configure(), NEFFT2D::configure(), CLChannelShuffleLayerKernel::configure(), NEIm2Col::configure(), NEPoolingLayer::configure(), NEReductionOperation::configure(), CLReshapeLayerKernel::configure(), CLReverseKernel::configure(), CLGaussianPyramidHorKernel::configure(), CLCopyKernel::configure(), CLFFT2D::configure(), NEUnstack::configure(), CLNormalizationLayerKernel::configure(), CLPermuteKernel::configure(), CLBatchToSpaceLayerKernel::configure(), CLSpaceToDepthLayerKernel::configure(), CLGradientKernel::configure(), CLDepthToSpaceLayerKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLHistogramKernel::configure(), CLUnstack::configure(), GCConcatenateLayer::configure(), CLLocallyConnectedMatrixMultiplyKernel::configure(), NECopyKernel::configure(), CLMinMaxKernel::configure(), CLQuantizationLayerKernel::configure(), CLReorgLayerKernel::configure(), CLRemapKernel::configure(), CLGatherKernel::configure(), NEGEMMMatrixAccumulateBiasesKernel::configure(), NEGEMMMatrixVectorMultiplyKernel::configure(), CLSpaceToBatchLayerKernel::configure(), NELocallyConnectedMatrixMultiplyKernel::configure(), CLBitwiseOrKernel::configure(), CLTileKernel::configure(), CLUpsampleLayerKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLBitwiseAndKernel::configure(), CLBitwiseXorKernel::configure(), CLDepthConvertLayerKernel::configure(), NETileKernel::configure(), CLDeconvolutionLayer::configure(), ICLSimpleKernel::configure(), CLDerivativeKernel::configure(), NEScale::configure(), CLMeanStdDevNormalizationKernel::configure(), CLMemsetKernel::configure(), CLActivationLayerKernel::configure(), CLComparisonKernel::configure(), NEDequantizationLayerKernel::configure(), CLFFTScaleKernel::configure(), CLSobel3x3Kernel::configure(), NEPriorBoxLayerKernel::configure(), NETableLookupKernel::configure(), IGCSimpleKernel::configure(), GCActivationLayerKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), CLFFT1D::configure(), GCPixelWiseMultiplicationKernel::configure(), GCPoolingLayerKernel::configure(), CLHOGOrientationBinningKernel::configure(), NEFFT1D::configure(), NEBatchToSpaceLayerKernel::configure(), NEPadLayer::configure(), NEDepthToSpaceLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLPoolingLayerKernel::configure(), CLFillBorderKernel::configure(), NEGaussianPyramidHorKernel::configure(), CLSobel7x7HorKernel::configure(), CLSobel5x5HorKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), NEReverseKernel::configure(), CLGEMMMatrixAdditionKernel::configure(), CPPFlipWeightsKernel::configure(), INEWarpKernel::configure(), CLDirectConvolutionLayer::configure(), GCFillBorderKernel::configure(), GCGEMMMatrixAdditionKernel::configure(), GCNormalizationLayerKernel::configure(), CLMeanStdDev::configure(), GCConvolutionLayerReshapeWeights::configure(), GCNormalizationLayer::configure(), CLDepthwiseVectorToTensorKernel::configure(), CLChannelExtractKernel::configure(), NEBitwiseNotKernel::configure(), NEHOGDescriptor::configure(), NEChannelShuffleLayerKernel::configure(), CLAbsoluteDifferenceKernel::configure(), CLPriorBoxLayerKernel::configure(), CLReductionOperationKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLCropKernel::configure(), CLWidthConcatenateLayerKernel::configure(), NESpaceToDepthLayerKernel::configure(), CLBoundingBoxTransformKernel::configure(), GCAbsoluteDifferenceKernel::configure(), CLHeightConcatenateLayerKernel::configure(), GCNormalizePlanarYUVLayerKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLMagnitudePhaseKernel::configure(), NEBitwiseXorKernel::configure(), NEBitwiseOrKernel::configure(), CLMeanStdDevKernel::configure(), CLColorConvertKernel::configure(), NEDepthwiseWeightsReshapeKernel::configure(), CLRangeKernel::configure(), NEFlattenLayerKernel::configure(), NEMemsetKernel::configure(), NEBitwiseAndKernel::configure(), NEPoolingLayerKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), NEReorgLayerKernel::configure(), NESpaceToBatchLayerKernel::configure(), CPPTopKVKernel::configure(), NEUpsampleLayerKernel::configure(), GCArithmeticAdditionKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLHOGDescriptor::configure(), GCGEMMTranspose1xWKernel::configure(), CLReductionOperation::configure(), CLChannelCombineKernel::configure(), GCSoftmaxLayer::configure(), NEGaussian5x5::configure(), NENormalizationLayer::configure(), NEHOGGradient::configure(), CLFFTRadixStageKernel::configure(), NEDerivativeKernel::configure(), NEFFTDigitReverseKernel::configure(), NEFFTScaleKernel::configure(), CLSelectKernel::configure(), NEQuantizationLayerKernel::configure(), NEReductionOperationKernel::configure(), CPPUpsampleKernel::configure(), NEConvolutionLayerReshapeWeights::configure(), NEColorConvertKernel::configure(), NEFastCornersKernel::configure(), CLConvertFullyConnectedWeightsKernel::configure(), CLConvolutionKernel< matrix_size >::configure(), CLBatchConcatenateLayerKernel::configure(), NEHOGOrientationBinningKernel::configure(), CLStackLayerKernel::configure(), NENormalizationLayerKernel::configure(), NERemapKernel::configure(), CLDepthConcatenateLayerKernel::configure(), CLDepthwiseIm2ColKernel::configure(), CPPPermuteKernel::configure(), NETransposeKernel::configure(), NEYOLOLayerKernel::configure(), GCBatchNormalizationLayerKernel::configure(), GCDepthConcatenateLayerKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), CLHOGGradient::configure(), NEAbsoluteDifferenceKernel::configure(), CLIntegralImageVertKernel::configure(), NERNNLayer::configure(), NESpaceToBatchLayer::configure(), NEDepthwiseConvolutionLayer3x3Kernel::configure(), NEDepthwiseVectorToTensorKernel::configure(), NEHeightConcatenateLayerKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), NENonLinearFilterKernel::configure(), CLPadLayer::configure(), CLWinogradInputTransformKernel::configure(), CLYOLOLayerKernel::configure(), NEThresholdKernel::configure(), NEWidthConcatenateLayerKernel::configure(), CLGaussian5x5::configure(), CLSoftmaxLayer::configure(), CLSpaceToBatchLayer::configure(), NEActivationLayerKernel::configure(), NESobel5x5::configure(), NESobel7x7::configure(), NEDepthwiseConvolutionLayerNativeKernel::configure(), NEChannelExtractKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), NEFillArrayKernel::configure(), NEFillInnerBorderKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLROIAlignLayerKernel::configure(), CLROIPoolingLayerKernel::configure(), NEMagnitudePhaseKernel< mag_type, phase_type >::configure(), NEMinMaxKernel::configure(), NENonMaximaSuppression3x3Kernel::configure(), NEPermuteKernel::configure(), NERangeKernel::configure(), NESobel5x5HorKernel::configure(), NESobel7x7HorKernel::configure(), GCLogits1DShiftExpSumKernel::configure(), NEBatchConcatenateLayerKernel::configure(), CLDirectConvolutionLayerOutputStageKernel::configure(), NEDepthConcatenateLayerKernel::configure(), NEGradientKernel::configure(), NEDirectConvolutionLayerOutputStageKernel::configure(), NEElementwiseUnaryKernel::configure(), NEFFTRadixStageKernel::configure(), NEFillBorderKernel::configure(), NEGEMMInterleave4x4Kernel::configure(), CLGEMMLowpMatrixMultiplyKernel::configure(), NEGEMMMatrixAdditionKernel::configure(), CLBatchNormalizationLayerKernel::configure(), NEMeanStdDevKernel::configure(), NEMeanStdDevNormalizationKernel::configure(), CLWinogradFilterTransformKernel::configure(), GCDropoutLayerKernel::configure(), CLConvolutionLayerReshapeWeights::configure(), NEFastCorners::configure(), CLHarrisScoreKernel::configure(), NEConvertFullyConnectedWeightsKernel::configure(), GCGEMMMatrixMultiplyKernel::configure(), NEDepthwiseIm2ColKernel::configure(), NEGatherKernel::configure(), NEChannelCombineKernel::configure(), NEHOGDetectorKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLStridedSliceKernel::configure(), NEMinMaxLayerKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), NEPixelWiseMultiplicationKernel::configure(), NESelectKernel::configure(), CPPCornerCandidatesKernel::configure(), NEStackLayerKernel::configure(), CLSobel5x5::configure(), CLSobel7x7::configure(), CPPDetectionPostProcessLayer::configure(), NEDepthwiseConvolutionAssemblyDispatch::configure(), CPPNonMaximumSuppressionKernel::configure(), NECumulativeDistributionKernel::configure(), CLFastCornersKernel::configure(), NEDirectConvolutionLayerKernel::configure(), CLWinogradOutputTransformKernel::configure(), CPPBoxWithNonMaximaSuppressionLimitKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLDeconvolutionLayerUpsample::configure(), NEBatchNormalizationLayerKernel::configure(), NEFuseBatchNormalizationKernel::configure(), NEGEMMLowpMatrixMultiplyKernel::configure(), NEGEMMMatrixMultiplyKernel::configure(), CLHOGDetectorKernel::configure(), NEROIPoolingLayerKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), NELaplacianPyramid::configure(), NECropResize::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLDirectConvolutionLayerKernel::configure(), NEDepthConvertLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel::configure(), CLCannyEdge::configure(), GCGEMMInterleave4x4Kernel::configure(), CLLaplacianPyramid::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFloatKernel::configure(), NEScaleKernel::configure(), NEStridedSliceKernel::configure(), NEDirectConvolutionLayer::configure(), NEScharr3x3Kernel::configure(), NEConvolutionKernel< matrix_size >::configure(), CLScharr3x3Kernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleKernel::configure(), NESobel3x3Kernel::configure(), CLGEMMMatrixMultiplyReshapedKernel::configure(), CLFastCorners::configure(), GCTensorShiftKernel::configure(), NEArithmeticSubtractionKernel::configure(), NEWinogradConvolutionLayer::configure(), NECropKernel::configure(), NEHistogramKernel::configure(), NESoftmaxLayer::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), CLCol2ImKernel::configure(), NEArithmeticAdditionKernel::configure(), NEGaussian5x5VertKernel::configure(), NEGEMMLowpOffsetContributionKernel::configure(), NEGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel::configure(), CLCropResize::configure(), NELocallyConnectedLayer::configure(), CLLocallyConnectedLayer::configure(), CLWinogradConvolutionLayer::configure(), NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel::configure(), NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), NEGEMM::configure(), CLComparisonStatic< COP >::configure(), GCGEMM::configure(), NECannyEdge::configure(), GCWeightsReshapeKernel::configure(), CLLaplacianReconstruct::configure(), NELaplacianReconstruct::configure(), NECol2ImKernel::configure(), NEGEMMTranspose1xWKernel::configure(), GCCol2ImKernel::configure(), CLIm2ColKernel::configure(), NEOpticalFlow::configure(), CLWeightsReshapeKernel::configure(), CLDepthwiseConvolutionLayer3x3::configure(), GCIm2ColKernel::configure(), CLComplexPixelWiseMultiplication::configure(), NEDepthwiseConvolutionLayer3x3::configure(), NEAccumulateWeightedKernel::configure(), CLHarrisCorners::configure(), NEHarrisCorners::configure(), NEGEMMLowpMatrixAReductionKernel::configure(), CLHOGMultiDetection::configure(), NEComplexPixelWiseMultiplication::configure(), GCFullyConnectedLayer::configure(), NEWeightsReshapeKernel::configure(), CLGEMMLowpMatrixMultiplyCore::configure(), NEHOGMultiDetection::configure(), NEGEMMLowpMatrixMultiplyCore::configure(), NEFFTConvolutionLayer::configure(), NEConvolutionSquare< matrix_size >::configure(), CLConvolutionSquare< matrix_size >::configure(), CLFFTConvolutionLayer::configure(), CLGEMM::configure(), CLHistogramBorderKernel::configure(), CLGaussianPyramidVertKernel::configure(), CLGenerateProposalsLayer::configure(), NELSTMLayer::configure(), NEIm2ColKernel::configure(), CLGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), NEGaussianPyramidHalf::configure(), CLEdgeNonMaxSuppressionKernel::configure(), NEGEMMLowpOffsetContributionOutputStageKernel::configure(), CLMinMaxLocationKernel::configure(), CLHOGBlockNormalizationKernel::configure(), CLConvolutionLayer::configure(), NEHarrisScoreKernel< block_size >::configure(), CLLSTMLayerQuantized::configure(), NEGaussianPyramidVertKernel::configure(), NEGEMMAssemblyDispatch::configure(), CLSeparableConvolutionHorKernel< matrix_size >::configure(), NELSTMLayerQuantized::configure(), CLLSTMLayer::configure(), CLDirectDeconvolutionLayer::configure(), NEConvolutionLayer::configure(), GCLogits1DNormKernel::configure(), CLGEMMDeconvolutionLayer::configure(), NEDeconvolutionLayer::configure(), CLGEMMLowpMatrixBReductionKernel::configure(), NEFullyConnectedLayer::configure(), CLSobel7x7VertKernel::configure(), CLSobel5x5VertKernel::configure(), NELogits1DSoftmaxKernel::configure(), CLFullyConnectedLayer::configure(), CLCopyToArrayKernel::configure(), GCConvolutionLayer::configure(), CLComplexPixelWiseMultiplicationKernel::configure(), NEArithmeticOperationKernel::configure(), NESobel5x5VertKernel::configure(), CLGaussianPyramidOrb::configure(), NEGEMMInterleavedWrapper::configure(), NEGaussianPyramidOrb::configure(), NESobel7x7VertKernel::configure(), NEGEMMLowpMatrixBReductionKernel::configure(), NESeparableConvolutionHorKernel< matrix_size >::configure(), NEHOGBlockNormalizationKernel::configure(), NEGEMMConvolutionLayer::configure(), NEEdgeNonMaxSuppressionKernel::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), CLSeparableConvolutionVertKernel< matrix_size >::configure(), CLGEMMConvolutionLayer::configure(), NEAccumulateSquaredKernel::configure(), CLEdgeTraceKernel::configure(), NEMinMaxLocationKernel::configure(), CLLKTrackerStage0Kernel::configure(), NEDivisionOperationKernel::configure(), CLDepthwiseConvolutionLayer::configure(), NEComplexPixelWiseMultiplicationKernel::configure(), NESeparableConvolutionVertKernel< matrix_size >::configure(), NEPowerOperationKernel::configure(), CLConvolutionRectangleKernel::configure(), CLLKTrackerStage1Kernel::configure(), NEEdgeTraceKernel::configure(), CLLogits1DNormKernel::configure(), NEComparisonOperationKernel::configure(), NEDepthwiseConvolutionLayerOptimized::configure(), NEConvolutionRectangleKernel::configure(), NEDepthwiseConvolutionLayer::configure(), NECropKernel::configure_output_shape(), ITensor::copy_from(), arm_compute::graph::backends::detail::create_convolution_layer< GCConvolutionLayerFunctions, GCTargetInfo >(), arm_compute::graph::backends::detail::create_convolution_layer< NEConvolutionLayerFunctions, NETargetInfo >(), arm_compute::graph::backends::detail::create_depthwise_convolution_layer< GCDepthwiseConvolutionLayerFunctions, GCTargetInfo >(), arm_compute::graph::backends::detail::create_detection_output_layer< CPPDetectionOutputLayer, CLTargetInfo >(), arm_compute::graph::backends::detail::create_detection_post_process_layer< CPPDetectionPostProcessLayer, CLTargetInfo >(), arm_compute::graph::backends::detail::create_normalization_layer< NENormalizationLayer, NETargetInfo >(), Accessor::data_layout(), Accessor::data_type(), arm_compute::utils::draw_detection_rectangle(), Accessor::element_size(), arm_compute::error_on_data_layout_not_in(), arm_compute::error_on_data_type_channel_not_in(), arm_compute::error_on_data_type_not_in(), arm_compute::error_on_mismatching_data_layouts(), arm_compute::error_on_mismatching_data_types(), arm_compute::error_on_mismatching_quantization_info(), arm_compute::error_on_mismatching_shapes(), arm_compute::error_on_tensor_not_2d(), arm_compute::error_on_unsupported_cpu_fp16(), arm_compute::error_on_unsupported_fp16(), CPPFlipWeightsKernel::flip_weights(), Accessor::format(), arm_compute::graph::backends::detail::get_backing_tensor_info(), Iterator::Iterator(), Accessor::num_channels(), Accessor::num_elements(), get_tensor_info_t< ITensorInfo * >::operator()(), Accessor::padding(), NEDepthwiseConvolutionAssemblyDispatch::prepare(), CaffePreproccessor::preprocess(), TFPreproccessor::preprocess(), ITensor::ptr_to_element(), Accessor::quantization_info(), NEMinMaxKernel::reset(), CLMinMaxLayerKernel::reset(), NEMinMaxLayerKernel::reset(), CLElementwiseOperationKernel::run(), CLHistogramKernel::run(), CLMinMaxKernel::run(), GCActivationLayerKernel::run(), GCDepthwiseConvolutionLayer3x3Kernel::run(), NEMemsetKernel::run(), CPPUpsampleKernel::run(), CLGEMMMatrixVectorMultiplyKernel::run(), NEHOGOrientationBinningKernel::run(), CLFlattenLayerKernel::run(), CLIntegralImageVertKernel::run(), NEGEMMMatrixAccumulateBiasesKernel::run(), CLROIPoolingLayerKernel::run(), NEFillInnerBorderKernel::run(), NENonMaximaSuppression3x3Kernel::run(), NECopyKernel::run(), CLLocallyConnectedMatrixMultiplyKernel::run(), NEDequantizationLayerKernel::run(), NEFillBorderKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), CPPDetectionOutputLayer::run(), NETileKernel::run(), NELocallyConnectedMatrixMultiplyKernel::run(), NEMeanStdDevKernel::run(), CLUpsampleLayerKernel::run(), NEGEMMMatrixVectorMultiplyKernel::run(), NEHOGDetectorKernel::run(), GCPoolingLayerKernel::run(), CLComparisonKernel::run(), CLMeanStdDevNormalizationKernel::run(), NEDepthToSpaceLayerKernel::run(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::run(), CLPoolingLayerKernel::run(), NEChannelShuffleLayerKernel::run(), CPPBoxWithNonMaximaSuppressionLimitKernel::run(), NEReverseKernel::run(), CLDepthwiseVectorToTensorKernel::run(), NEROIPoolingLayerKernel::run(), NESpaceToDepthLayerKernel::run(), CLPriorBoxLayerKernel::run(), NEQuantizationLayerKernel::run(), NEFlattenLayerKernel::run(), GCArithmeticAdditionKernel::run(), GCNormalizePlanarYUVLayerKernel::run(), NEPoolingLayerKernel::run(), CLDepthConcatenateLayerKernel::run(), NEReorgLayerKernel::run(), CPPTopKVKernel::run(), CLBatchConcatenateLayerKernel::run(), CLMeanStdDevKernel::run(), CLReductionOperationKernel::run(), GCTensorShiftKernel::run(), NEWidthConcatenateLayerKernel::run(), NEHeightConcatenateLayerKernel::run(), CLPixelWiseMultiplicationKernel::run(), NEWinogradConvolutionLayer::run(), NEConvertFullyConnectedWeightsKernel::run(), CLCropKernel::run(), CLGEMMLowpMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), CLStackLayerKernel::run(), CLDirectConvolutionLayerOutputStageKernel::run(), NECannyEdge::run(), NEGEMMLowpMatrixMultiplyKernel::run(), NEMinMaxLayerKernel::run(), GCWeightsReshapeKernel::run(), CLGEMMReshapeLHSMatrixKernel::run(), CLColorConvertKernel::run(), NEDepthwiseConvolutionLayer3x3Kernel::run(), GCCol2ImKernel::run(), NEDepthConvertLayerKernel::run(), NEFFTRadixStageKernel::run(), CLROIAlignLayerKernel::run(), CLDepthwiseIm2ColKernel::run(), NEStackLayerKernel::run(), GCGEMMMatrixMultiplyKernel::run(), NEGEMMMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), NEDirectConvolutionLayerKernel::run(), GCBatchNormalizationLayerKernel::run(), NEPixelWiseMultiplicationKernel::run(), CPPDetectionPostProcessLayer::run(), CLWinogradInputTransformKernel::run(), CLCol2ImKernel::run(), NEBatchToSpaceLayerKernel::run(), CLWinogradFilterTransformKernel::run(), CLDirectConvolutionLayerKernel::run(), NEGEMMLowpOffsetContributionKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLWinogradOutputTransformKernel::run(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run(), NECropKernel::run(), NESpaceToBatchLayerKernel::run(), CLCropResize::run(), NEWeightsReshapeKernel::run(), CLWeightsReshapeKernel::run(), CLIm2ColKernel::run(), CLGEMMMatrixMultiplyReshapedKernel::run(), NEDepthwiseConvolutionAssemblyDispatch::run(), NELogits1DSoftmaxKernel::run(), CLComplexPixelWiseMultiplicationKernel::run(), NESobel7x7VertKernel::run(), NEHOGBlockNormalizationKernel::run(), NEEdgeNonMaxSuppressionKernel::run(), CLLogits1DMaxShiftExpSumKernel::run(), NEComplexPixelWiseMultiplicationKernel::run(), NEEdgeTraceKernel::run(), NEConvolutionRectangleKernel::run(), CPPBoxWithNonMaximaSuppressionLimitKernel::run_nmslimit(), arm_compute::run_reverse(), Accessor::shape(), Accessor::size(), and SubTensor::SubTensor().

◆ info() [2/2]

virtual ITensorInfo* info ( )
pure virtual

Interface to be implemented by the child class to return the tensor's metadata.

Returns
A pointer to the tensor's metadata.

Implemented in CLSubTensor, GCTensor, CLTensor, SubTensor, and Tensor.

◆ is_used()

◆ mark_as_unused()

◆ print()

void print ( std::ostream &  s,
IOFormatInfo  io_fmt = IOFormatInfo() 
) const

Print a tensor to a given stream using user defined formatting information.

Parameters
sOutput stream
io_fmtFormat information

Referenced by arm_compute::test::print_tensor().

◆ ptr_to_element()

uint8_t* ptr_to_element ( const Coordinates id) const
inline

Return a pointer to the element at the passed coordinates.

Parameters
[in]idCoordinates of the element
Returns
Pointer to the requested element

Definition at line 63 of file ITensor.h.

64  {
65  return buffer() + info()->offset_element_in_bytes(id);
66  }
virtual size_t offset_element_in_bytes(const Coordinates &pos) const =0
The offset in bytes from the beginning of the memory allocation to access the element at position (x,...
virtual uint8_t * buffer() const =0
Interface to be implemented by the child class to return a pointer to CPU memory.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.

References ITensor::buffer(), ITensor::info(), and ITensorInfo::offset_element_in_bytes().

Referenced by NECropKernel::configure_output_shape(), CPPFlipWeightsKernel::flip_weights(), GCAccessor::operator()(), Accessor::operator()(), CLAccessor::operator()(), NEMemsetKernel::run(), NEFastCornersKernel::run(), NETileKernel::run(), CPPDetectionOutputLayer::run(), NEDepthToSpaceLayerKernel::run(), NESpaceToDepthLayerKernel::run(), NEROIPoolingLayerKernel::run(), NEScharr3x3Kernel::run(), NESobel3x3Kernel::run(), CPPNonMaximumSuppressionKernel::run(), CPPDetectionPostProcessLayer::run(), NEBatchToSpaceLayerKernel::run(), NECropResize::run(), NECropKernel::run(), NESpaceToBatchLayerKernel::run(), NEWeightsReshapeKernel::run(), NESobel5x5VertKernel::run(), CPPBoxWithNonMaximaSuppressionLimitKernel::run_nmslimit(), and arm_compute::run_reverse().


The documentation for this class was generated from the following files: