Compute Library
 19.08
ITensorInfo Class Referenceabstract

Store the tensor's metadata. More...

#include <ITensorInfo.h>

Collaboration diagram for ITensorInfo:
[legend]

Public Member Functions

virtual ~ITensorInfo ()=default
 Default virtual destructor. More...
 
virtual ITensorInfoset_data_type (DataType data_type)=0
 Set the data type to the specified value. More...
 
virtual ITensorInfoset_num_channels (int num_channels)=0
 Set the number of channels to the specified value. More...
 
virtual ITensorInfoset_format (Format format)=0
 Set the format of an already initialized tensor. More...
 
virtual ITensorInfoset_tensor_shape (const TensorShape &shape)=0
 Set the shape of an already initialized tensor. More...
 
virtual ITensorInfoset_quantization_info (const QuantizationInfo &quantization_info)=0
 Set the quantization settings (scale and offset) of the tensor. More...
 
virtual ITensorInfoset_data_layout (const DataLayout &data_layout)=0
 Set the data layout of the tensor. More...
 
virtual ITensorInforeset_padding ()=0
 Resets the padding settings of the tensor. More...
 
virtual bool auto_padding ()=0
 Update the offset to the first element and the strides to automatically computed values. More...
 
virtual bool extend_padding (const PaddingSize &padding)=0
 Update the offset to the first element, the strides and the total size. More...
 
virtual size_t dimension (size_t index) const =0
 Return the size of the requested dimension. More...
 
virtual size_t dimension (DataLayoutDimension dimension) const =0
 Return the size of the requested data layout dimension. More...
 
virtual const Stridesstrides_in_bytes () const =0
 The strides in bytes for accessing each dimension of the tensor. More...
 
virtual size_t offset_first_element_in_bytes () const =0
 The offset from the beginning of the memory allocation to the first element of the tensor. More...
 
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, y, z ...) More...
 
virtual size_t element_size () const =0
 Element size in bytes calculated as data_size() * num_channels() More...
 
virtual size_t num_dimensions () const =0
 The number of dimensions of the tensor (rank) More...
 
virtual size_t num_channels () const =0
 The number of channels for each tensor element. More...
 
virtual const TensorShapetensor_shape () const =0
 Size for each dimension of the tensor. More...
 
virtual DataType data_type () const =0
 Data type used for each element of the tensor. More...
 
virtual Format format () const =0
 Colour format of the image. More...
 
virtual size_t total_size () const =0
 Returns the total size of the tensor in bytes. More...
 
virtual PaddingSize padding () const =0
 Padding of tensor. More...
 
virtual bool has_padding () const =0
 Checks if the tensor has been allocated with padding or not. More...
 
virtual bool is_resizable () const =0
 Flag indicating whether the size of the tensor can be changed. More...
 
virtual ITensorInfoset_is_resizable (bool is_resizable)=0
 Set the flag whether the tensor size can be changed. More...
 
virtual ValidRegion valid_region () const =0
 Valid region of the tensor. More...
 
virtual void set_valid_region (const ValidRegion &valid_region)=0
 Set the valid region of the tensor. More...
 
virtual QuantizationInfo quantization_info () const =0
 Get the quantization settings (scale and offset) of the tensor. More...
 
virtual DataLayout data_layout () const =0
 Get the data layout of the tensor. More...
 
- Public Member Functions inherited from ICloneable< ITensorInfo >
virtual ~ICloneable ()=default
 Default virtual desctructor. More...
 
virtual std::unique_ptr< ITensorInfoclone () const=0
 Provide a clone of the current object of class T. More...
 

Static Public Member Functions

template<typename... Infos>
static std::pair< TensorShape, ValidRegionbroadcast_shape_and_valid_region (const Infos &... infos)
 If infos are broadcast compatible tensor info's, return the broadcasted shape and the intersection of the broadcasted valid regions of the tensors. More...
 

Detailed Description

Store the tensor's metadata.

Definition at line 40 of file ITensorInfo.h.

Constructor & Destructor Documentation

◆ ~ITensorInfo()

virtual ~ITensorInfo ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ auto_padding()

virtual bool auto_padding ( )
pure virtual

Update the offset to the first element and the strides to automatically computed values.

Note
The padding used by this method is really conservative so that the tensor can be used for most functions.
Returns
True if the strides or the offset to the first element have changed.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by SubTensorInfo::auto_padding(), and AccessWindowAutoPadding::update_padding_if_needed().

◆ broadcast_shape_and_valid_region()

static std::pair<TensorShape, ValidRegion> broadcast_shape_and_valid_region ( const Infos &...  infos)
inlinestatic

If infos are broadcast compatible tensor info's, return the broadcasted shape and the intersection of the broadcasted valid regions of the tensors.

Two tensor info's are broadcast compatible if their shapes are broadcast compatible.

Two tensor shapes are broadcast compatible if for each dimension, they're equal or one of them is 1.

If two shapes are compatible, each dimension in the broadcasted shape is the max of the original dimensions.

Parameters
[in]infosTensor info's.
Returns
The broadcasted shape and valid region, or an empty shape and valid region if the info's are not broadcast compatible.

Definition at line 247 of file ITensorInfo.h.

248  {
249  TensorShape bc_shape = TensorShape::broadcast_shape(infos.tensor_shape()...);
250  ValidRegion bc_valid_region{ Coordinates(), bc_shape };
251 
252  auto broadcast_valid_region = [&bc_valid_region](const ITensorInfo & info)
253  {
254  if(info.num_dimensions() != 0)
255  {
256  for(size_t d = 0; d < bc_valid_region.shape.num_dimensions(); ++d)
257  {
258  const bool is_broadcast = (info.tensor_shape()[d] == 1);
259 
260  const int anchor_max = std::max(bc_valid_region.anchor[d], info.valid_region().anchor[d]);
261  const size_t valid_min = std::min(bc_valid_region.shape[d], info.valid_region().shape[d]);
262 
263  if(!is_broadcast || (valid_min == 0))
264  {
265  bc_valid_region.anchor.set(d, anchor_max);
266  bc_valid_region.shape.set(d, valid_min);
267  }
268  }
269  }
270  };
271 
272  utility::for_each(broadcast_valid_region, infos...);
273 
274  return std::pair<TensorShape, ValidRegion>(bc_shape, bc_valid_region);
275  }
static TensorShape broadcast_shape(const Shapes &... shapes)
If shapes are broadcast compatible, return the broadcasted shape.
Definition: TensorShape.h:210
void for_each(F &&)
Base case of for_each.
Definition: Utility.h:93

References TensorShape::broadcast_shape(), arm_compute::utility::for_each(), arm_compute::test::validation::info, and TensorShape::set().

Referenced by NEElementwiseUnaryKernel::configure().

◆ data_layout()

virtual DataLayout data_layout ( ) const
pure virtual

Get the data layout of the tensor.

Returns
A DataLayout containing the layout data information.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by ImageAccessor::access_tensor(), ValidationInputAccessor::access_tensor(), arm_compute::auto_init_if_empty(), arm_compute::misc::shape_calculator::compute_batch_to_space_shape(), arm_compute::misc::shape_calculator::compute_col2im_shape(), arm_compute::misc::shape_calculator::compute_deconvolution_output_shape(), arm_compute::misc::shape_calculator::compute_deconvolution_upsampled_shape(), arm_compute::misc::shape_calculator::compute_deep_convolution_shape(), arm_compute::misc::shape_calculator::compute_depth_to_space_shape(), arm_compute::misc::shape_calculator::compute_depthwise_convolution_shape(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_output_stage_shape(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_prior_box_shape(), arm_compute::misc::shape_calculator::compute_reorg_output_shape(), arm_compute::misc::shape_calculator::compute_reshaped_depthwise_weights_shape(), arm_compute::misc::shape_calculator::compute_roi_align_shape(), arm_compute::misc::shape_calculator::compute_space_to_batch_shape(), arm_compute::misc::shape_calculator::compute_space_to_depth_shape(), arm_compute::misc::shape_calculator::compute_upsample_shape(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_input_transform_shape(), CLScaleKernel::configure(), CLPoolingLayer::configure(), CLScale::configure(), NEUpsampleLayer::configure(), CLRNNLayer::configure(), CLChannelShuffleLayerKernel::configure(), NEIm2Col::configure(), NEPoolingLayer::configure(), CLDepthToSpaceLayerKernel::configure(), CLNormalizationLayerKernel::configure(), CLBatchToSpaceLayerKernel::configure(), CLSpaceToDepthLayerKernel::configure(), CLReorgLayerKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLUpsampleLayerKernel::configure(), NEScale::configure(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::configure(), CLComparisonKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPoolingLayerKernel::configure(), CLDepthwiseVectorToTensorKernel::configure(), CLPriorBoxLayerKernel::configure(), NEPoolingLayerKernel::configure(), NEUpsampleLayerKernel::configure(), NENormalizationLayerKernel::configure(), CLDepthwiseIm2ColKernel::configure(), NEYOLOLayerKernel::configure(), NEDepthwiseVectorToTensorKernel::configure(), NERNNLayer::configure(), CLWinogradInputTransformKernel::configure(), CLYOLOLayerKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLROIAlignLayerKernel::configure(), NEDirectConvolutionLayerOutputStageKernel::configure(), CLDirectConvolutionLayerOutputStageKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLWinogradFilterTransformKernel::configure(), NEFuseBatchNormalizationKernel::configure(), CLDirectConvolutionLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), NEScaleKernel::configure(), NEDirectConvolutionLayer::configure(), NEWinogradConvolutionLayer::configure(), CLWinogradConvolutionLayer::configure(), CLIm2ColKernel::configure(), CLDepthwiseConvolutionLayer3x3::configure(), NEDepthwiseConvolutionLayer3x3::configure(), CLFFTConvolutionLayer::configure(), NEFFTConvolutionLayer::configure(), CLGenerateProposalsLayer::configure(), NEIm2ColKernel::configure(), CLDirectDeconvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), NEDeconvolutionLayer::configure(), NEFullyConnectedLayer::configure(), CLFullyConnectedLayer::configure(), NEGEMMConvolutionLayer::configure(), CLGEMMConvolutionLayer::configure(), CLDepthwiseConvolutionLayer::configure(), NEDepthwiseConvolutionLayerOptimized::configure(), NEDepthwiseConvolutionLayer::configure(), Accessor::data_layout(), SubTensorInfo::data_layout(), SubTensorInfo::dimension(), arm_compute::error_on_data_layout_not_in(), arm_compute::error_on_mismatching_data_layouts(), CPPFlipWeightsKernel::flip_weights(), CLConvolutionLayer::get_convolution_method(), NEConvolutionLayer::get_convolution_method(), CLDeconvolutionLayer::get_deconvolution_method(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), CaffePreproccessor::preprocess(), CLDeconvolutionLayerUpsampleKernel::run(), CLUpsampleLayerKernel::run(), NEDepthToSpaceLayerKernel::run(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::run(), CLPoolingLayerKernel::run(), NESpaceToDepthLayerKernel::run(), NEChannelShuffleLayerKernel::run(), NEPoolingLayerKernel::run(), NEReorgLayerKernel::run(), NEWinogradConvolutionLayer::run(), CLROIAlignLayerKernel::run(), NEDirectConvolutionLayerKernel::run(), CLWinogradInputTransformKernel::run(), CLDirectConvolutionLayerKernel::run(), NEBatchToSpaceLayerKernel::run(), NESpaceToBatchLayerKernel::run(), CLIm2ColKernel::run(), CLDeconvolutionLayerUpsampleKernel::validate(), CLRNNLayer::validate(), CLUpsampleLayerKernel::validate(), NEUpsampleLayerKernel::validate(), NEScale::validate(), NEPoolingLayerKernel::validate(), NERNNLayer::validate(), NEDepthwiseConvolutionAssemblyDispatch::validate(), NEScaleKernel::validate(), NEWinogradConvolutionLayer::validate(), CLWinogradConvolutionLayer::validate(), CLDepthwiseConvolutionLayer3x3::validate(), NEDepthwiseConvolutionLayer3x3::validate(), CLGenerateProposalsLayer::validate(), CLFFTConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), CLDirectDeconvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), CLConvolutionLayer::validate(), NEFullyConnectedLayer::validate(), CLFullyConnectedLayer::validate(), NEGEMMConvolutionLayer::validate(), CLGEMMConvolutionLayer::validate(), CLDepthwiseConvolutionLayer::validate(), NEDepthwiseConvolutionLayerOptimized::validate(), NEDepthwiseConvolutionLayer::validate(), and INEWinogradLayerTransformWeightsKernel< T >::validate().

◆ data_type()

virtual DataType data_type ( ) const
pure virtual

Data type used for each element of the tensor.

Returns
Tensor data type

Implemented in TensorInfo, and SubTensorInfo.

Referenced by NumPyAccessor::access_tensor(), ValidationOutputAccessor::access_tensor(), DetectionOutputAccessor::access_tensor(), TopNPredictionsAccessor::access_tensor(), RandomAccessor::access_tensor(), arm_compute::auto_init_if_empty(), GCLogits1DMaxKernel::configure(), CLIntegralImageHorKernel::configure(), CLWarpPerspectiveKernel::configure(), CLElementWiseUnaryLayerKernel::configure(), CLMedian3x3Kernel::configure(), GCTransposeKernel::configure(), CLNonMaximaSuppression3x3Kernel::configure(), NEFloorKernel::configure(), CLWarpAffineKernel::configure(), CLScaleKernel::configure(), NELogits1DMaxKernel::configure(), CLPoolingLayer::configure(), GCGEMMMatrixAccumulateBiasesKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLGEMMMatrixAccumulateBiasesKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLGEMMMatrixVectorMultiplyKernel::configure(), CLReduceMean::configure(), CLRNNLayer::configure(), NEGEMMLowpAssemblyMatrixMultiplyCore::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), NEReduceMean::configure(), CLDequantizationLayerKernel::configure(), CLFloorKernel::configure(), CLFlattenLayerKernel::configure(), CLChannelShuffleLayerKernel::configure(), NEPoolingLayer::configure(), NEReductionOperation::configure(), CLReshapeLayerKernel::configure(), CLReverseKernel::configure(), CLCopyKernel::configure(), CLGaussianPyramidHorKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLHistogramKernel::configure(), CLDepthToSpaceLayerKernel::configure(), CLNormalizationLayerKernel::configure(), CLPermuteKernel::configure(), CLBatchToSpaceLayerKernel::configure(), CLSpaceToDepthLayerKernel::configure(), CLGradientKernel::configure(), CLLocallyConnectedMatrixMultiplyKernel::configure(), CLMinMaxKernel::configure(), CLQuantizationLayerKernel::configure(), NEGEMMMatrixVectorMultiplyKernel::configure(), CLReorgLayerKernel::configure(), CLRemapKernel::configure(), NETileKernel::configure(), CLGatherKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLTileKernel::configure(), CLUpsampleLayerKernel::configure(), CLDepthConvertLayerKernel::configure(), CLActivationLayerKernel::configure(), GCActivationLayerKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::configure(), GCPoolingLayerKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLMemsetKernel::configure(), CLComparisonKernel::configure(), CLDerivativeKernel::configure(), CLFFTScaleKernel::configure(), CLSobel3x3Kernel::configure(), NETableLookupKernel::configure(), CPPFlipWeightsKernel::configure(), GCFillBorderKernel::configure(), CLHOGOrientationBinningKernel::configure(), GCGEMMMatrixAdditionKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLPoolingLayerKernel::configure(), CLFillBorderKernel::configure(), CLSobel5x5HorKernel::configure(), CLSobel7x7HorKernel::configure(), CLDirectConvolutionLayer::configure(), CLGEMMMatrixAdditionKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), CLMeanStdDev::configure(), GCNormalizationLayer::configure(), CLAbsoluteDifferenceKernel::configure(), CLHeightConcatenateLayerKernel::configure(), CLDepthwiseVectorToTensorKernel::configure(), CLPriorBoxLayerKernel::configure(), CLReductionOperationKernel::configure(), CLBoundingBoxTransformKernel::configure(), NESpaceToDepthLayerKernel::configure(), CLCropKernel::configure(), CLWidthConcatenateLayerKernel::configure(), GCGEMMTranspose1xWKernel::configure(), CLColorConvertKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLMagnitudePhaseKernel::configure(), CLRangeKernel::configure(), NEPoolingLayerKernel::configure(), NEUpsampleLayerKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), CLReductionOperation::configure(), GCSoftmaxLayer::configure(), NENormalizationLayer::configure(), CLFFTRadixStageKernel::configure(), CLSelectKernel::configure(), NEReductionOperationKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), GCBatchNormalizationLayerKernel::configure(), GCDepthConcatenateLayerKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), CLDepthwiseIm2ColKernel::configure(), CLBatchConcatenateLayerKernel::configure(), CLConvertFullyConnectedWeightsKernel::configure(), CLConvolutionKernel< matrix_size >::configure(), NENormalizationLayerKernel::configure(), NEYOLOLayerKernel::configure(), CLStackLayerKernel::configure(), CLDepthConcatenateLayerKernel::configure(), NERNNLayer::configure(), CLIntegralImageVertKernel::configure(), NESpaceToBatchLayer::configure(), NEAbsoluteDifferenceKernel::configure(), NEDepthwiseConvolutionLayer3x3Kernel::configure(), NEDepthwiseVectorToTensorKernel::configure(), CLYOLOLayerKernel::configure(), CLWinogradInputTransformKernel::configure(), CLSoftmaxLayer::configure(), CLSpaceToBatchLayer::configure(), NEActivationLayerKernel::configure(), NEDepthwiseConvolutionLayerNativeKernel::configure(), NEMinMaxKernel::configure(), NENonMaximaSuppression3x3Kernel::configure(), CLROIAlignLayerKernel::configure(), CLROIPoolingLayerKernel::configure(), NERangeKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), GCDropoutLayerKernel::configure(), NEBatchConcatenateLayerKernel::configure(), NEGradientKernel::configure(), NEDepthConcatenateLayerKernel::configure(), CLDirectConvolutionLayerOutputStageKernel::configure(), NEDirectConvolutionLayerOutputStageKernel::configure(), NEElementwiseUnaryKernel::configure(), CLBatchNormalizationLayerKernel::configure(), NEGEMMMatrixAdditionKernel::configure(), NEMeanStdDevNormalizationKernel::configure(), GCLogits1DShiftExpSumKernel::configure(), CLGEMMLowpMatrixMultiplyKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLHarrisScoreKernel::configure(), GCGEMMMatrixMultiplyKernel::configure(), NEDepthwiseIm2ColKernel::configure(), NEGatherKernel::configure(), NEPixelWiseMultiplicationKernel::configure(), NESelectKernel::configure(), CLStridedSliceKernel::configure(), CPPDetectionPostProcessLayer::configure(), NECumulativeDistributionKernel::configure(), NEDirectConvolutionLayerKernel::configure(), CLFastCornersKernel::configure(), CLDeconvolutionLayerUpsample::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLHOGDetectorKernel::configure(), NEFuseBatchNormalizationKernel::configure(), NEROIPoolingLayerKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), GCGEMMInterleave4x4Kernel::configure(), CLDirectConvolutionLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), NESpaceToBatchLayerKernel::configure(), CLGEMMMatrixMultiplyReshapedKernel::configure(), NESoftmaxLayer::configure(), NEArithmeticSubtractionKernel::configure(), NECropKernel::configure(), GCTensorShiftKernel::configure(), NEWinogradConvolutionLayer::configure(), CLCol2ImKernel::configure(), NEArithmeticAdditionKernel::configure(), NELocallyConnectedLayer::configure(), CLLocallyConnectedLayer::configure(), CLWinogradConvolutionLayer::configure(), GCWeightsReshapeKernel::configure(), NEGEMMTranspose1xWKernel::configure(), GCCol2ImKernel::configure(), GCIm2ColKernel::configure(), CLIm2ColKernel::configure(), CLDepthwiseConvolutionLayer3x3::configure(), CLWeightsReshapeKernel::configure(), NEDepthwiseConvolutionLayer3x3::configure(), NEGEMMLowpMatrixMultiplyCore::configure(), CLGEMM::configure(), CLHistogramBorderKernel::configure(), CLGaussianPyramidVertKernel::configure(), NELSTMLayer::configure(), CLGenerateProposalsLayer::configure(), NEIm2ColKernel::configure(), CLEdgeNonMaxSuppressionKernel::configure(), CLMinMaxLocationKernel::configure(), CLHOGBlockNormalizationKernel::configure(), NEHarrisScoreKernel< block_size >::configure(), NEGEMMAssemblyDispatch::configure(), CLSeparableConvolutionHorKernel< matrix_size >::configure(), CLLSTMLayer::configure(), GCLogits1DNormKernel::configure(), CLDirectDeconvolutionLayer::configure(), NEDeconvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), CLSobel5x5VertKernel::configure(), NEFullyConnectedLayer::configure(), NELogits1DSoftmaxKernel::configure(), CLSobel7x7VertKernel::configure(), CLFullyConnectedLayer::configure(), CLCopyToArrayKernel::configure(), GCConvolutionLayer::configure(), NEGEMMInterleavedWrapper::configure(), NEGEMMConvolutionLayer::configure(), NEEdgeNonMaxSuppressionKernel::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), CLSeparableConvolutionVertKernel< matrix_size >::configure(), CLGEMMConvolutionLayer::configure(), CLEdgeTraceKernel::configure(), NEMinMaxLocationKernel::configure(), CLDepthwiseConvolutionLayer::configure(), CLConvolutionRectangleKernel::configure(), CLLogits1DNormKernel::configure(), NEDepthwiseConvolutionLayerOptimized::configure(), NEDepthwiseConvolutionLayer::configure(), 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_type(), SubTensorInfo::data_type(), arm_compute::error_on_data_type_not_in(), arm_compute::error_on_mismatching_data_types(), arm_compute::error_on_mismatching_quantization_info(), arm_compute::error_on_unsupported_cpu_fp16(), arm_compute::error_on_unsupported_fp16(), NEMinMaxKernel::reset(), CLMinMaxKernel::run(), CPPUpsampleKernel::run(), NEFillInnerBorderKernel::run(), NEGEMMMatrixAccumulateBiasesKernel::run(), NENonMaximaSuppression3x3Kernel::run(), NEDequantizationLayerKernel::run(), NEFillBorderKernel::run(), NELocallyConnectedMatrixMultiplyKernel::run(), NEHOGDetectorKernel::run(), CPPBoxWithNonMaximaSuppressionLimitKernel::run(), NEReverseKernel::run(), NEQuantizationLayerKernel::run(), NEPoolingLayerKernel::run(), CPPTopKVKernel::run(), NEWidthConcatenateLayerKernel::run(), CLReductionOperationKernel::run(), NEHeightConcatenateLayerKernel::run(), NEGEMMLowpMatrixMultiplyKernel::run(), NEDepthwiseConvolutionLayer3x3Kernel::run(), NEDepthConvertLayerKernel::run(), NEGEMMMatrixMultiplyKernel::run(), NEDirectConvolutionLayerKernel::run(), NEPixelWiseMultiplicationKernel::run(), CPPDetectionPostProcessLayer::run(), NEHOGBlockNormalizationKernel::run(), NEEdgeNonMaxSuppressionKernel::run(), NELSTMLayer::run(), NEConvolutionRectangleKernel::run(), SubTensorInfo::set_tensor_shape(), CLFFT1D::validate(), CLRNNLayer::validate(), CLMeanStdDev::validate(), NEFFT1D::validate(), NEL2NormalizeLayer::validate(), CLReductionOperation::validate(), CLL2NormalizeLayer::validate(), CLSoftmaxLayer::validate(), NERNNLayer::validate(), NESoftmaxLayer::validate(), CLSpaceToBatchLayer::validate(), CLLocallyConnectedLayer::validate(), NELocallyConnectedLayer::validate(), NEDirectConvolutionLayer::validate(), CLWinogradConvolutionLayer::validate(), CLDepthwiseConvolutionLayer3x3::validate(), NEDepthwiseConvolutionLayer3x3::validate(), CLGEMM::validate(), NEGEMMLowpMatrixMultiplyCore::validate(), NEGEMMAssemblyDispatch::validate(), CLGEMMDeconvolutionLayer::validate(), CLDirectDeconvolutionLayer::validate(), NEDeconvolutionLayer::validate(), NEFullyConnectedLayer::validate(), CLFullyConnectedLayer::validate(), NELSTMLayer::validate(), NEGEMMConvolutionLayer::validate(), CLLSTMLayer::validate(), CLGEMMConvolutionLayer::validate(), CLDepthwiseConvolutionLayer::validate(), NEDepthwiseConvolutionLayerOptimized::validate(), NEDepthwiseConvolutionLayer::validate(), and arm_compute::validate_and_configure_window().

◆ dimension() [1/2]

virtual size_t dimension ( size_t  index) const
pure virtual

Return the size of the requested dimension.

Parameters
[in]indexIndex of the dimension
Returns
Dimension of the requested dimension

Implemented in TensorInfo, and SubTensorInfo.

Referenced by NumPyAccessor::access_tensor(), TopNPredictionsAccessor::access_tensor(), CLElementwiseOperationKernel::border_size(), CLComparisonKernel::border_size(), CLPixelWiseMultiplicationKernel::border_size(), NEPixelWiseMultiplicationKernel::border_size(), NEArithmeticSubtractionKernel::border_size(), CLComplexPixelWiseMultiplicationKernel::border_size(), NEComplexPixelWiseMultiplicationKernel::border_size(), arm_compute::misc::shape_calculator::compute_deconvolution_upsampled_shape(), arm_compute::misc::shape_calculator::compute_depth_to_space_shape(), arm_compute::misc::shape_calculator::compute_interleaved_shape(), arm_compute::misc::shape_calculator::compute_lhs_reshaped_shape(), arm_compute::misc::shape_calculator::compute_mm_shape(), arm_compute::misc::shape_calculator::compute_prior_box_shape(), arm_compute::misc::shape_calculator::compute_reductionB_shape(), arm_compute::misc::shape_calculator::compute_reshaped_depthwise_weights_shape(), arm_compute::misc::shape_calculator::compute_rhs_reshaped_shape(), arm_compute::misc::shape_calculator::compute_roi_align_shape(), arm_compute::misc::shape_calculator::compute_transposed_shape(), arm_compute::misc::shape_calculator::compute_upsample_shape(), arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(), arm_compute::misc::shape_calculator::compute_winograd_output_transform_shape(), GCLogits1DMaxKernel::configure(), CLIntegralImageHorKernel::configure(), CLWarpPerspectiveKernel::configure(), CLMedian3x3Kernel::configure(), CLWarpAffineKernel::configure(), GCTransposeKernel::configure(), GCScaleKernel::configure(), CLScaleKernel::configure(), CLComparison::configure(), CLPixelWiseMultiplication::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), GCGEMMMatrixAccumulateBiasesKernel::configure(), NEArithmeticSubtraction::configure(), CLGEMMMatrixVectorMultiplyKernel::configure(), NEPixelWiseMultiplication::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), NEGEMMLowpAssemblyMatrixMultiplyCore::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLMinMaxLayerKernel::configure(), CLFlattenLayerKernel::configure(), CLRNNLayer::configure(), NEPoolingLayer::configure(), CLChannelShuffleLayerKernel::configure(), CLReverseKernel::configure(), CLGaussianPyramidHorKernel::configure(), CPPDetectionOutputLayer::configure(), CLDepthToSpaceLayerKernel::configure(), CLBatchToSpaceLayerKernel::configure(), CLComputeAllAnchorsKernel::configure(), NEUnstack::configure(), CLGradientKernel::configure(), CLHistogramKernel::configure(), CLNormalizationLayerKernel::configure(), CLPermuteKernel::configure(), CLSpaceToDepthLayerKernel::configure(), CLUpsampleLayerKernel::configure(), CLTileKernel::configure(), CLDepthConvertLayerKernel::configure(), CLLocallyConnectedMatrixMultiplyKernel::configure(), NEGEMMMatrixVectorMultiplyKernel::configure(), CLMinMaxKernel::configure(), CLRemapKernel::configure(), CLReorgLayerKernel::configure(), CLGatherKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLUnstack::configure(), NEScale::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::configure(), GCPoolingLayerKernel::configure(), CLDerivativeKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLComparisonKernel::configure(), CLFFTScaleKernel::configure(), CLSobel3x3Kernel::configure(), CLActivationLayerKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), GCGEMMMatrixAdditionKernel::configure(), CLHOGOrientationBinningKernel::configure(), NEGaussianPyramidHorKernel::configure(), CLFFTDigitReverseKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPoolingLayerKernel::configure(), CLFillBorderKernel::configure(), CLSobel5x5HorKernel::configure(), CLSobel7x7HorKernel::configure(), CLMeanStdDev::configure(), CLWidthConcatenateLayerKernel::configure(), NEHOGDescriptor::configure(), CLHeightConcatenateLayerKernel::configure(), CLPriorBoxLayerKernel::configure(), CLReductionOperationKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), GCConvolutionLayerReshapeWeights::configure(), CLWidthConcatenate4TensorsKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), GCGEMMTranspose1xWKernel::configure(), CLMagnitudePhaseKernel::configure(), CLMeanStdDevKernel::configure(), NEPoolingLayerKernel::configure(), CLColorConvertKernel::configure(), CPPTopKVKernel::configure(), CLRangeKernel::configure(), CLHOGDescriptor::configure(), CLReductionOperation::configure(), NEReductionOperationKernel::configure(), CLFFTRadixStageKernel::configure(), CLSelectKernel::configure(), CLBatchConcatenateLayerKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), GCDepthConcatenateLayerKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), CLDepthwiseIm2ColKernel::configure(), NEHOGOrientationBinningKernel::configure(), NERemapKernel::configure(), CLStackLayerKernel::configure(), CLWinogradInputTransformKernel::configure(), CLYOLOLayerKernel::configure(), NERNNLayer::configure(), CLIntegralImageVertKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLROIAlignLayerKernel::configure(), CLROIPoolingLayerKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLWinogradFilterTransformKernel::configure(), GCLogits1DShiftExpSumKernel::configure(), NEMeanStdDevKernel::configure(), CLGEMMLowpMatrixMultiplyKernel::configure(), CLHarrisScoreKernel::configure(), GCGEMMMatrixMultiplyKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLStridedSliceKernel::configure(), CLWinogradOutputTransformKernel::configure(), CPPBoxWithNonMaximaSuppressionLimitKernel::configure(), CPPDetectionPostProcessLayer::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLFastCornersKernel::configure(), CPPNonMaximumSuppressionKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLHOGDetectorKernel::configure(), NEGEMMMatrixMultiplyKernel::configure(), NEROIPoolingLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), GCGEMMInterleave4x4Kernel::configure(), CLDirectConvolutionLayerKernel::configure(), NELaplacianPyramid::configure(), CLCannyEdge::configure(), CLLaplacianPyramid::configure(), NEScaleKernel::configure(), CLGEMMMatrixMultiplyReshapedKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), GCTensorShiftKernel::configure(), NECropKernel::configure(), NEWinogradConvolutionLayer::configure(), CLCol2ImKernel::configure(), NELocallyConnectedLayer::configure(), CLLocallyConnectedLayer::configure(), NEGEMM::configure(), CLComparisonStatic< COP >::configure(), GCGEMM::configure(), CLLaplacianReconstruct::configure(), NELaplacianReconstruct::configure(), GCWeightsReshapeKernel::configure(), GCCol2ImKernel::configure(), NEOpticalFlow::configure(), GCIm2ColKernel::configure(), CLIm2ColKernel::configure(), CLDepthwiseConvolutionLayer3x3::configure(), CLComplexPixelWiseMultiplication::configure(), GCFullyConnectedLayer::configure(), NEHOGMultiDetection::configure(), NEComplexPixelWiseMultiplication::configure(), CLGEMMLowpMatrixMultiplyCore::configure(), CLHOGMultiDetection::configure(), NEGEMMLowpMatrixMultiplyCore::configure(), CLGEMM::configure(), CLHistogramBorderKernel::configure(), CLGaussianPyramidVertKernel::configure(), CLGenerateProposalsLayer::configure(), NEIm2ColKernel::configure(), CLGaussianPyramidHalf::configure(), NEGaussianPyramidHalf::configure(), CLOpticalFlow::configure(), CLEdgeNonMaxSuppressionKernel::configure(), CLHOGBlockNormalizationKernel::configure(), CLLSTMLayerQuantized::configure(), NEGaussianPyramidVertKernel::configure(), NELSTMLayerQuantized::configure(), CLSeparableConvolutionHorKernel< matrix_size >::configure(), CLDirectDeconvolutionLayer::configure(), NEDeconvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), CLGEMMLowpMatrixBReductionKernel::configure(), NEFullyConnectedLayer::configure(), CLSobel5x5VertKernel::configure(), CLSobel7x7VertKernel::configure(), CLFullyConnectedLayer::configure(), CLCopyToArrayKernel::configure(), GCConvolutionLayer::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), NEGEMMConvolutionLayer::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), CLSeparableConvolutionVertKernel< matrix_size >::configure(), CLGEMMConvolutionLayer::configure(), CLEdgeTraceKernel::configure(), CLDepthwiseConvolutionLayer::configure(), NEDepthwiseConvolutionLayer::configure(), NECropKernel::configure_output_shape(), ITensor::copy_from(), CPPFlipWeightsKernel::flip_weights(), CLConvolutionLayer::get_convolution_method(), NEConvolutionLayer::get_convolution_method(), CLHistogramKernel::run(), CLGEMMMatrixVectorMultiplyKernel::run(), CPPUpsampleKernel::run(), CLIntegralImageVertKernel::run(), NECopyKernel::run(), CLROIPoolingLayerKernel::run(), NEMeanStdDevKernel::run(), NETileKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), NEGEMMMatrixVectorMultiplyKernel::run(), CLUpsampleLayerKernel::run(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::run(), CLMeanStdDevNormalizationKernel::run(), NEDepthToSpaceLayerKernel::run(), CLPoolingLayerKernel::run(), NESpaceToDepthLayerKernel::run(), NEROIPoolingLayerKernel::run(), CLDepthwiseVectorToTensorKernel::run(), CLPriorBoxLayerKernel::run(), NEFlattenLayerKernel::run(), CLMeanStdDevKernel::run(), NEPoolingLayerKernel::run(), CLReductionOperationKernel::run(), NEGEMMLowpMatrixMultiplyKernel::run(), NEFFTRadixStageKernel::run(), CLROIAlignLayerKernel::run(), CLDepthwiseIm2ColKernel::run(), GCCol2ImKernel::run(), NEGEMMMatrixMultiplyKernel::run(), NEDirectConvolutionLayerKernel::run(), NEBatchToSpaceLayerKernel::run(), NESpaceToBatchLayerKernel::run(), CLWeightsReshapeKernel::run(), NEWeightsReshapeKernel::run(), CLLogits1DMaxShiftExpSumKernel::run(), CPPBoxWithNonMaximaSuppressionLimitKernel::run_nmslimit(), arm_compute::run_reverse(), CLReduceMean::validate(), NEUnstack::validate(), NEReduceMean::validate(), CLDeconvolutionLayerUpsampleKernel::validate(), CLUnstack::validate(), CLUpsampleLayerKernel::validate(), CLRNNLayer::validate(), CLMeanStdDev::validate(), NEUpsampleLayerKernel::validate(), CLConvertFullyConnectedWeightsKernel::validate(), NEScale::validate(), NEConvolutionLayerReshapeWeights::validate(), NEPadLayer::validate(), CLReductionOperation::validate(), NEPoolingLayerKernel::validate(), CLCropKernel::validate(), NEConvertFullyConnectedWeightsKernel::validate(), CLConvolutionLayerReshapeWeights::validate(), CLPadLayer::validate(), NERNNLayer::validate(), CPPDetectionPostProcessLayer::validate(), CLLocallyConnectedLayer::validate(), NELocallyConnectedLayer::validate(), NEGEMM::validate(), CLCropResize::validate(), CLGEMMLowpMatrixMultiplyCore::validate(), NEWinogradConvolutionLayer::validate(), NEDepthwiseConvolutionLayer3x3::validate(), CLGEMM::validate(), NEGEMMLowpMatrixMultiplyCore::validate(), CLGenerateProposalsLayer::validate(), NEDeconvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), CLDirectDeconvolutionLayer::validate(), NEFullyConnectedLayer::validate(), CLFullyConnectedLayer::validate(), CLLSTMLayerQuantized::validate(), NELSTMLayerQuantized::validate(), NELSTMLayer::validate(), NEGEMMConvolutionLayer::validate(), CLLSTMLayer::validate(), CLGEMMConvolutionLayer::validate(), CLDepthwiseConvolutionLayer::validate(), NEDepthwiseConvolutionLayerOptimized::validate(), NEDepthwiseConvolutionLayer::validate(), and arm_compute::validate_and_configure_window().

◆ dimension() [2/2]

virtual size_t dimension ( DataLayoutDimension  dimension) const
pure virtual

Return the size of the requested data layout dimension.

Parameters
[in]dimensionDataLayoutDimension of the dimension
Returns
Dimension of the requested dimension

Implemented in TensorInfo, and SubTensorInfo.

◆ element_size()

virtual size_t element_size ( ) const
pure virtual

Element size in bytes calculated as data_size() * num_channels()

Returns
The size of one element in bytes

Implemented in TensorInfo, and SubTensorInfo.

Referenced by CLElementWiseUnaryLayerKernel::configure(), CLTransposeKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLDequantizationLayerKernel::configure(), CLFloorKernel::configure(), CLReverseKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLCopyKernel::configure(), CLQuantizationLayerKernel::configure(), NEGEMMMatrixVectorMultiplyKernel::configure(), CLTileKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLMemsetKernel::configure(), CLActivationLayerKernel::configure(), GCActivationLayerKernel::configure(), NEScale::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), CLHeightConcatenateLayerKernel::configure(), GCGEMMTranspose1xWKernel::configure(), NEDepthwiseWeightsReshapeKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), NEUpsampleLayerKernel::configure(), CLSelectKernel::configure(), CLDepthConcatenateLayerKernel::configure(), CPPPermuteKernel::configure(), NENormalizationLayerKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), NETransposeKernel::configure(), CLBatchConcatenateLayerKernel::configure(), CLYOLOLayerKernel::configure(), NEPermuteKernel::configure(), GCDropoutLayerKernel::configure(), CLBatchNormalizationLayerKernel::configure(), NEGEMMInterleave4x4Kernel::configure(), CLStridedSliceKernel::configure(), NEWinogradConvolutionLayer::configure(), CLCol2ImKernel::configure(), NECol2ImKernel::configure(), GCIm2ColKernel::configure(), ITensor::copy_from(), Accessor::element_size(), SubTensorInfo::element_size(), NEDepthwiseConvolutionAssemblyDispatch::prepare(), NEMemsetKernel::run(), CPPUpsampleKernel::run(), NECopyKernel::run(), NETileKernel::run(), NEDepthToSpaceLayerKernel::run(), NESpaceToDepthLayerKernel::run(), NEFlattenLayerKernel::run(), NEReorgLayerKernel::run(), CLReductionOperationKernel::run(), NEConvertFullyConnectedWeightsKernel::run(), NEGEMMLowpMatrixMultiplyKernel::run(), NEStackLayerKernel::run(), NEBatchToSpaceLayerKernel::run(), NESpaceToBatchLayerKernel::run(), NEWeightsReshapeKernel::run(), NEDepthwiseConvolutionAssemblyDispatch::run(), NELogits1DSoftmaxKernel::run(), NELSTMLayer::run(), arm_compute::run_reverse(), and NEUpsampleLayerKernel::validate().

◆ extend_padding()

virtual bool extend_padding ( const PaddingSize padding)
pure virtual

Update the offset to the first element, the strides and the total size.

Note
This function can only increase the offset, strides and total size.
Parameters
[in]paddingPadding around the XY plane in number of elements.
Returns
True if the strides, offset and total size have changed.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by GCConvolutionLayer::configure(), SubTensorInfo::extend_padding(), arm_compute::test::validation::TEST_CASE(), AccessWindowStatic::update_padding_if_needed(), and AccessWindowRectangle::update_padding_if_needed().

◆ format()

◆ has_padding()

virtual bool has_padding ( ) const
pure virtual

Checks if the tensor has been allocated with padding or not.

Returns
True if padding is allocated in the tensor, otherwise false.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by SubTensorInfo::has_padding(), NECropKernel::run(), and NECropKernel::validate().

◆ is_resizable()

◆ num_channels()

◆ num_dimensions()

virtual size_t num_dimensions ( ) const
pure virtual

The number of dimensions of the tensor (rank)

Returns
The number of dimensions of the tensor (rank)

Implemented in TensorInfo, and SubTensorInfo.

Referenced by arm_compute::misc::shape_calculator::compute_mm_shape(), arm_compute::misc::shape_calculator::compute_stack_shape(), AccessWindowStatic::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), GCGEMMMatrixAccumulateBiasesKernel::configure(), CLReduceMean::configure(), CLFlattenLayerKernel::configure(), NEReduceMean::configure(), CPPDetectionOutputLayer::configure(), CLPermuteKernel::configure(), CLGatherKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), CPPFlipWeightsKernel::configure(), GCConvolutionLayerReshapeWeights::configure(), NEChannelShuffleLayerKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CPPUpsampleKernel::configure(), NEQuantizationLayerKernel::configure(), CPPPermuteKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), NEPermuteKernel::configure(), CLROIPoolingLayerKernel::configure(), CLGEMMLowpMatrixMultiplyKernel::configure(), GCGEMMMatrixMultiplyKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), NEGatherKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLStridedSliceKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), NEROIPoolingLayerKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLGEMMMatrixMultiplyReshapedKernel::configure(), GCWeightsReshapeKernel::configure(), NELaplacianReconstruct::configure(), CLLaplacianReconstruct::configure(), GCFullyConnectedLayer::configure(), CLGaussianPyramidHalf::configure(), NEGaussianPyramidHalf::configure(), NEFullyConnectedLayer::configure(), CLFullyConnectedLayer::configure(), GCConvolutionLayer::configure(), CLGaussianPyramidOrb::configure(), NEGaussianPyramidOrb::configure(), ITensor::copy_from(), arm_compute::error_on_tensor_not_2d(), CLGEMMLowpMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), NEGEMMLowpMatrixMultiplyKernel::run(), CLColorConvertKernel::run(), GCGEMMMatrixMultiplyKernel::run(), NEStackLayerKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), NEGEMMLowpOffsetContributionKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMMMatrixMultiplyReshapedKernel::run(), AccessWindowStatic::update_window_if_needed(), AccessWindowRectangle::update_window_if_needed(), CLReduceMean::validate(), NEReduceMean::validate(), NESplit::validate(), CLSplit::validate(), CLConvertFullyConnectedWeightsKernel::validate(), NEConvolutionLayerReshapeWeights::validate(), CLCropKernel::validate(), NEConvertFullyConnectedWeightsKernel::validate(), CLSoftmaxLayer::validate(), CLPadLayer::validate(), NEGatherKernel::validate(), CLConvolutionLayerReshapeWeights::validate(), NESoftmaxLayer::validate(), NECropKernel::validate(), NELocallyConnectedLayer::validate(), CLLocallyConnectedLayer::validate(), NEDepthwiseConvolutionLayer3x3::validate(), CLGenerateProposalsLayer::validate(), NEFullyConnectedLayer::validate(), CLFullyConnectedLayer::validate(), CLLSTMLayerQuantized::validate(), NELSTMLayerQuantized::validate(), NELSTMLayer::validate(), NEGEMMConvolutionLayer::validate(), CLLSTMLayer::validate(), CLGEMMConvolutionLayer::validate(), and NEDepthwiseConvolutionLayerOptimized::validate().

◆ offset_element_in_bytes()

virtual size_t offset_element_in_bytes ( const Coordinates pos) const
pure virtual

The offset in bytes from the beginning of the memory allocation to access the element at position (x, y, z ...)

Parameters
[in]posVector with the coordinates of the element to access. The size of this vector must be equal to the number of dimensions of the tensor
Returns
Offset in bytes from the beginning of the memory allocation to access the element (x, y, z, ...)

Implemented in TensorInfo, and SubTensorInfo.

Referenced by arm_compute::utils::draw_detection_rectangle(), SubTensorInfo::offset_first_element_in_bytes(), ITensor::ptr_to_element(), and NEReorgLayerKernel::run().

◆ offset_first_element_in_bytes()

virtual size_t offset_first_element_in_bytes ( ) const
pure virtual

The offset from the beginning of the memory allocation to the first element of the tensor.

This can be used to access efficiently elements in a 2D tensor

Returns
The offset in bytes to access the first element of the tensor.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by NEDepthwiseConvolutionAssemblyDispatch::prepare(), NEWidthConcatenateLayerKernel::run(), NEHeightConcatenateLayerKernel::run(), NEDepthwiseConvolutionAssemblyDispatch::run(), AccessWindowStatic::update_window_if_needed(), and AccessWindowRectangle::update_window_if_needed().

◆ padding()

◆ quantization_info()

virtual QuantizationInfo quantization_info ( ) const
pure virtual

Get the quantization settings (scale and offset) of the tensor.

Returns
A QuantizationInfo containing the scale and offset.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by arm_compute::auto_init_if_empty(), CLScaleKernel::configure(), CLPoolingLayer::configure(), CLGEMMMatrixVectorMultiplyKernel::configure(), CLReduceMean::configure(), CLDequantizationLayerKernel::configure(), NEReduceMean::configure(), NEPoolingLayer::configure(), NEReductionOperation::configure(), CLQuantizationLayerKernel::configure(), CLActivationLayerKernel::configure(), CLComparisonKernel::configure(), CLPoolingLayerKernel::configure(), CLDirectConvolutionLayer::configure(), CLWidthConcatenate2TensorsKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLWidthConcatenateLayerKernel::configure(), CLHeightConcatenateLayerKernel::configure(), CLRangeKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), CLReductionOperation::configure(), CLDepthConcatenateLayerKernel::configure(), CLDepthwiseIm2ColKernel::configure(), CLBatchConcatenateLayerKernel::configure(), NESpaceToBatchLayer::configure(), CLSpaceToBatchLayer::configure(), CLSpaceToBatchLayerKernel::configure(), CLDeconvolutionLayerUpsample::configure(), NEDepthwiseConvolutionAssemblyDispatch::configure(), CLDirectConvolutionLayerKernel::configure(), NESpaceToBatchLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3::configure(), CLGEMMLowpMatrixMultiplyCore::configure(), NEGEMMLowpMatrixMultiplyCore::configure(), CLLSTMLayerQuantized::configure(), NELSTMLayerQuantized::configure(), CLDirectDeconvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), NEDeconvolutionLayer::configure(), NEFullyConnectedLayer::configure(), CLFullyConnectedLayer::configure(), NEGEMMConvolutionLayer::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), CLGEMMConvolutionLayer::configure(), CLDepthwiseConvolutionLayer::configure(), CLLogits1DNormKernel::configure(), NEDepthwiseConvolutionLayer::configure(), 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::error_on_mismatching_quantization_info(), Accessor::quantization_info(), SubTensorInfo::quantization_info(), CPPUpsampleKernel::run(), NEQuantizationLayerKernel::run(), NEHeightConcatenateLayerKernel::run(), NEWidthConcatenateLayerKernel::run(), NEPixelWiseMultiplicationKernel::run(), CPPDetectionPostProcessLayer::run(), arm_compute::helpers::tensor_info::tensors_have_different_quantization_info(), NESoftmaxLayer::validate(), CLSpaceToBatchLayer::validate(), CLGEMMLowpMatrixMultiplyCore::validate(), NEDepthwiseConvolutionLayer3x3::validate(), CLDepthwiseConvolutionLayer3x3::validate(), NEGEMMLowpMatrixMultiplyCore::validate(), NEFullyConnectedLayer::validate(), CLFullyConnectedLayer::validate(), CLLSTMLayerQuantized::validate(), NELSTMLayerQuantized::validate(), NEGEMMConvolutionLayer::validate(), CLGEMMConvolutionLayer::validate(), CLDepthwiseConvolutionLayer::validate(), NEDepthwiseConvolutionLayerOptimized::validate(), and NEDepthwiseConvolutionLayer::validate().

◆ reset_padding()

virtual ITensorInfo& reset_padding ( )
pure virtual

Resets the padding settings of the tensor.

Returns
Reference to this ITensorInfo object

Implemented in TensorInfo, and SubTensorInfo.

Referenced by SubTensorInfo::reset_padding().

◆ set_data_layout()

virtual ITensorInfo& set_data_layout ( const DataLayout data_layout)
pure virtual

Set the data layout of the tensor.

Parameters
[in]data_layoutDataLayout containing the layout data information.
Returns
Reference to this ITensorInfo object

Implemented in TensorInfo, and SubTensorInfo.

Referenced by arm_compute::auto_init_if_empty(), CLUpsampleLayerKernel::configure(), NEUpsampleLayerKernel::configure(), NEFFTConvolutionLayer::configure(), NEDeconvolutionLayer::configure(), NEDepthwiseConvolutionLayer::configure(), and SubTensorInfo::set_data_layout().

◆ set_data_type()

◆ set_format()

virtual ITensorInfo& set_format ( Format  format)
pure virtual

Set the format of an already initialized tensor.

Note
If the data type has already been configured (i.e. not UNKNOWN) it must match the new format. If data type hasn't been configured it will be based on the format.
Parameters
[in]formatSingle-plane format of the tensor.
Returns
Reference to this ITensorInfo object

Implemented in TensorInfo, and SubTensorInfo.

Referenced by arm_compute::test::validation::DATA_TEST_CASE(), and SubTensorInfo::set_format().

◆ set_is_resizable()

virtual ITensorInfo& set_is_resizable ( bool  is_resizable)
pure virtual

Set the flag whether the tensor size can be changed.

Parameters
[in]is_resizableFlag that marks the tensor if it can be changed or not.
Returns
Reference to this ITensorInfo object

Implemented in TensorInfo, and SubTensorInfo.

Referenced by SubTensorInfo::set_is_resizable().

◆ set_num_channels()

virtual ITensorInfo& set_num_channels ( int  num_channels)
pure virtual

Set the number of channels to the specified value.

Warning
This resets the format to UNKNOWN.
Parameters
[in]num_channelsNew number of channels.
Returns
Reference to this ITensorInfo object

Implemented in TensorInfo, and SubTensorInfo.

Referenced by arm_compute::auto_init_if_empty(), and SubTensorInfo::set_num_channels().

◆ set_quantization_info()

virtual ITensorInfo& set_quantization_info ( const QuantizationInfo quantization_info)
pure virtual

◆ set_tensor_shape()

virtual ITensorInfo& set_tensor_shape ( const TensorShape shape)
pure virtual

Set the shape of an already initialized tensor.

Warning
Changing the shape requires to recompute the strides and is therefore only possible if the tensor hasn't been allocated yet.
Parameters
[in]shapeNew tensor shape.
Returns
Reference to this ITensorInfo object

Implemented in TensorInfo, and SubTensorInfo.

Referenced by arm_compute::auto_init_if_empty(), NECropKernel::configure_output_shape(), SubTensorInfo::set_tensor_shape(), NEL2NormalizeLayer::validate(), and CLL2NormalizeLayer::validate().

◆ set_valid_region()

virtual void set_valid_region ( const ValidRegion valid_region)
pure virtual

Set the valid region of the tensor.

Parameters
[in]valid_regionValid region to set.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by NEReshapeLayerKernel::configure(), CLGaussianPyramidHorKernel::configure(), CLReshapeLayerKernel::configure(), CPPDetectionOutputLayer::configure(), CLPermuteKernel::configure(), CLReorgLayerKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::configure(), GCActivationLayerKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), CPPFlipWeightsKernel::configure(), NEGaussianPyramidHorKernel::configure(), CLHOGOrientationBinningKernel::configure(), CLWidthConcatenateLayerKernel::configure(), CLHeightConcatenateLayerKernel::configure(), CLDepthwiseVectorToTensorKernel::configure(), NEChannelShuffleLayerKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), NEDepthwiseWeightsReshapeKernel::configure(), NEReorgLayerKernel::configure(), GCGEMMTranspose1xWKernel::configure(), CPPUpsampleKernel::configure(), NEQuantizationLayerKernel::configure(), CLBatchConcatenateLayerKernel::configure(), NEHOGOrientationBinningKernel::configure(), CLDepthConcatenateLayerKernel::configure(), CPPPermuteKernel::configure(), CLDepthwiseIm2ColKernel::configure(), NEDepthwiseVectorToTensorKernel::configure(), NEHeightConcatenateLayerKernel::configure(), NEWidthConcatenateLayerKernel::configure(), NEPermuteKernel::configure(), NEDepthConcatenateLayerKernel::configure(), GCDropoutLayerKernel::configure(), NEBatchConcatenateLayerKernel::configure(), NEGatherKernel::configure(), NEDepthwiseIm2ColKernel::configure(), NEFuseBatchNormalizationKernel::configure(), GCGEMMInterleave4x4Kernel::configure(), GCWeightsReshapeKernel::configure(), GCIm2ColKernel::configure(), CLWeightsReshapeKernel::configure(), CLGaussianPyramidVertKernel::configure(), NEGaussianPyramidVertKernel::configure(), ITensor::copy_from(), CPPDetectionOutputLayer::run(), SubTensorInfo::set_tensor_shape(), AccessWindowAutoPadding::set_valid_region(), AccessWindowStatic::set_valid_region(), and AccessWindowRectangle::set_valid_region().

◆ strides_in_bytes()

virtual const Strides& strides_in_bytes ( ) const
pure virtual

The strides in bytes for accessing each dimension of the tensor.

Returns
Strides in bytes for each tensor dimension

Implemented in TensorInfo, and SubTensorInfo.

Referenced by CLROIPoolingLayerKernel::configure(), arm_compute::utils::draw_detection_rectangle(), NEDepthwiseConvolutionAssemblyDispatch::prepare(), NEHOGOrientationBinningKernel::run(), CLROIPoolingLayerKernel::run(), NENonMaximaSuppression3x3Kernel::run(), NEHOGDetectorKernel::run(), CLDepthConcatenateLayerKernel::run(), CLBatchConcatenateLayerKernel::run(), NEWidthConcatenateLayerKernel::run(), NEHeightConcatenateLayerKernel::run(), CLGEMMLowpMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), NEGEMMLowpMatrixMultiplyKernel::run(), NEMinMaxLayerKernel::run(), CLROIAlignLayerKernel::run(), GCCol2ImKernel::run(), NEStackLayerKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), CLWinogradInputTransformKernel::run(), CLDirectConvolutionLayerKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLWinogradOutputTransformKernel::run(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run(), CLWeightsReshapeKernel::run(), NEWeightsReshapeKernel::run(), CLIm2ColKernel::run(), CLGEMMMatrixMultiplyReshapedKernel::run(), NEDepthwiseConvolutionAssemblyDispatch::run(), NESobel7x7VertKernel::run(), NEHOGBlockNormalizationKernel::run(), NEEdgeNonMaxSuppressionKernel::run(), NEEdgeTraceKernel::run(), SubTensorInfo::strides_in_bytes(), AccessWindowStatic::update_window_if_needed(), and AccessWindowRectangle::update_window_if_needed().

◆ tensor_shape()

virtual const TensorShape& tensor_shape ( ) const
pure virtual

Size for each dimension of the tensor.

Returns
A vector with the size for each dimension of the tensor

Implemented in TensorInfo, and SubTensorInfo.

Referenced by ImageAccessor::access_tensor(), ValidationInputAccessor::access_tensor(), arm_compute::auto_init_if_empty(), arm_compute::utils::compare_tensor(), arm_compute::misc::shape_calculator::compute_batch_to_space_shape(), arm_compute::misc::shape_calculator::compute_col2im_shape(), arm_compute::misc::shape_calculator::compute_deconvolution_output_shape(), arm_compute::misc::shape_calculator::compute_deconvolution_upsampled_shape(), arm_compute::misc::shape_calculator::compute_deep_convolution_shape(), arm_compute::misc::shape_calculator::compute_depth_to_space_shape(), arm_compute::misc::shape_calculator::compute_depthwise_convolution_shape(), arm_compute::misc::shape_calculator::compute_flatten_shape(), arm_compute::misc::shape_calculator::compute_im2col_conv_shape(), arm_compute::misc::shape_calculator::compute_interleaved_shape(), arm_compute::misc::shape_calculator::compute_lhs_reshaped_shape(), arm_compute::misc::shape_calculator::compute_min_max_shape(), arm_compute::misc::shape_calculator::compute_mm_shape(), arm_compute::misc::shape_calculator::compute_output_stage_shape(), arm_compute::misc::shape_calculator::compute_permutation_output_shape(), arm_compute::misc::shape_calculator::compute_pool_shape(), arm_compute::misc::shape_calculator::compute_reductionB_shape(), arm_compute::misc::shape_calculator::compute_reorg_output_shape(), arm_compute::misc::shape_calculator::compute_rhs_reshaped_shape(), arm_compute::misc::shape_calculator::compute_rnn_shape(), arm_compute::misc::shape_calculator::compute_roi_align_shape(), arm_compute::misc::shape_calculator::compute_softmax_shape(), arm_compute::misc::shape_calculator::compute_space_to_batch_shape(), arm_compute::misc::shape_calculator::compute_space_to_depth_shape(), arm_compute::misc::shape_calculator::compute_split_shape(), arm_compute::misc::shape_calculator::compute_stack_shape(), arm_compute::misc::shape_calculator::compute_strided_slice_shape(), arm_compute::misc::shape_calculator::compute_transposed_shape(), arm_compute::misc::shape_calculator::compute_upsample_shape(), AccessWindowAutoPadding::compute_valid_region(), AccessWindowStatic::compute_valid_region(), 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(), GCLogits1DMaxKernel::configure(), CLWarpPerspectiveKernel::configure(), CLElementWiseUnaryLayerKernel::configure(), NEFloorKernel::configure(), CLTransposeKernel::configure(), NEReshapeLayerKernel::configure(), CLWarpAffineKernel::configure(), GCTransposeKernel::configure(), NEBox3x3Kernel::configure(), GCScaleKernel::configure(), NEAccumulateKernel::configure(), CLReduceMean::configure(), CLFloorKernel::configure(), NEGEMMLowpAssemblyMatrixMultiplyCore::configure(), NEReduceMean::configure(), CLDequantizationLayerKernel::configure(), CLGaussianPyramidHorKernel::configure(), CLReshapeLayerKernel::configure(), CLCopyKernel::configure(), CPPDetectionOutputLayer::configure(), NEUnstack::configure(), CLPermuteKernel::configure(), CLQuantizationLayerKernel::configure(), CLRemapKernel::configure(), CLReorgLayerKernel::configure(), CLTileKernel::configure(), NETileKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLDepthConvertLayerKernel::configure(), CLUnstack::configure(), CLFFT1D::configure(), GCActivationLayerKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::configure(), GCDepthwiseConvolutionLayer3x3Kernel::configure(), GCPixelWiseMultiplicationKernel::configure(), NEFFT1D::configure(), NEPadLayer::configure(), CLHOGOrientationBinningKernel::configure(), CLPoolingLayerKernel::configure(), NEGaussianPyramidHorKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), INEWarpKernel::configure(), CPPFlipWeightsKernel::configure(), GCFillBorderKernel::configure(), CLFillBorderKernel::configure(), NEBitwiseNotKernel::configure(), NEHOGDescriptor::configure(), CLHeightConcatenateLayerKernel::configure(), NEChannelShuffleLayerKernel::configure(), CLChannelExtractKernel::configure(), CLWidthConcatenateLayerKernel::configure(), CLDepthwiseVectorToTensorKernel::configure(), GCNormalizationLayer::configure(), NEBitwiseAndKernel::configure(), NEBitwiseXorKernel::configure(), NEDepthwiseWeightsReshapeKernel::configure(), NEReorgLayerKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), CPPTopKVKernel::configure(), GCArithmeticAdditionKernel::configure(), CLHOGDescriptor::configure(), GCGEMMTranspose1xWKernel::configure(), CLReductionOperation::configure(), NEBitwiseOrKernel::configure(), NEGaussian5x5::configure(), NENormalizationLayer::configure(), NEHOGGradient::configure(), CLChannelCombineKernel::configure(), CLSelectKernel::configure(), NEQuantizationLayerKernel::configure(), CPPUpsampleKernel::configure(), GCSoftmaxLayer::configure(), NEColorConvertKernel::configure(), CLBatchConcatenateLayerKernel::configure(), NEHOGOrientationBinningKernel::configure(), NERemapKernel::configure(), NETransposeKernel::configure(), CPPPermuteKernel::configure(), CLDepthConcatenateLayerKernel::configure(), GCDepthConcatenateLayerKernel::configure(), CLHOGGradient::configure(), CLDepthwiseIm2ColKernel::configure(), GCDirectConvolutionLayerKernel< kernel_size >::configure(), NEAbsoluteDifferenceKernel::configure(), NESpaceToBatchLayer::configure(), NEDepthwiseVectorToTensorKernel::configure(), NEHeightConcatenateLayerKernel::configure(), NEWidthConcatenateLayerKernel::configure(), CLWinogradInputTransformKernel::configure(), CLGaussian5x5::configure(), CLPadLayer::configure(), NEChannelExtractKernel::configure(), NESobel5x5::configure(), NEFillInnerBorderKernel::configure(), NEPermuteKernel::configure(), NESobel7x7::configure(), CLSoftmaxLayer::configure(), CLSpaceToBatchLayer::configure(), NEGradientKernel::configure(), NEBatchConcatenateLayerKernel::configure(), NEDepthConcatenateLayerKernel::configure(), NEFillBorderKernel::configure(), GCDropoutLayerKernel::configure(), GCLogits1DShiftExpSumKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), NEDepthwiseIm2ColKernel::configure(), NEGatherKernel::configure(), CLStridedSliceKernel::configure(), CLColorConvertKernel::configure(), NESelectKernel::configure(), NEChannelCombineKernel::configure(), CLSobel7x7::configure(), CLSobel5x5::configure(), NEFastCorners::configure(), CLWinogradOutputTransformKernel::configure(), NEGEMMLowpMatrixMultiplyKernel::configure(), NEGEMMMatrixMultiplyKernel::configure(), NEROIPoolingLayerKernel::configure(), NEDepthConvertLayerKernel::configure(), CLCannyEdge::configure(), GCGEMMInterleave4x4Kernel::configure(), NECropResize::configure(), NEStridedSliceKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), NEConvolutionKernel< matrix_size >::configure(), CLFastCorners::configure(), NESoftmaxLayer::configure(), GCTensorShiftKernel::configure(), NEGEMMLowpOffsetContributionKernel::configure(), CLCropResize::configure(), CLWinogradConvolutionLayer::configure(), NEGEMM::configure(), NECannyEdge::configure(), GCWeightsReshapeKernel::configure(), NELaplacianReconstruct::configure(), CLLaplacianReconstruct::configure(), GCCol2ImKernel::configure(), CLWeightsReshapeKernel::configure(), GCIm2ColKernel::configure(), NEAccumulateWeightedKernel::configure(), CLHarrisCorners::configure(), NEHarrisCorners::configure(), CLHOGMultiDetection::configure(), NEHOGMultiDetection::configure(), GCFullyConnectedLayer::configure(), NEGEMMLowpMatrixMultiplyCore::configure(), CLConvolutionSquare< matrix_size >::configure(), CLFFTConvolutionLayer::configure(), NEFFTConvolutionLayer::configure(), NEConvolutionSquare< matrix_size >::configure(), CLGaussianPyramidVertKernel::configure(), NELSTMLayer::configure(), NEGEMMLowpOffsetContributionOutputStageKernel::configure(), CLLSTMLayerQuantized::configure(), CLHOGBlockNormalizationKernel::configure(), NEGaussianPyramidVertKernel::configure(), NELSTMLayerQuantized::configure(), CLLSTMLayer::configure(), GCLogits1DNormKernel::configure(), NEFullyConnectedLayer::configure(), CLFullyConnectedLayer::configure(), GCConvolutionLayer::configure(), NESeparableConvolutionHorKernel< matrix_size >::configure(), NEGEMMConvolutionLayer::configure(), NEHOGBlockNormalizationKernel::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), NEAccumulateSquaredKernel::configure(), CLDepthwiseConvolutionLayer::configure(), NESeparableConvolutionVertKernel< matrix_size >::configure(), NEEdgeTraceKernel::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 >(), arm_compute::misc::shape_calculator::extract_shape(), NEDepthwiseConvolutionAssemblyDispatch::is_optimized_supported(), Accessor::num_elements(), CaffePreproccessor::preprocess(), TFPreproccessor::preprocess(), CLMinMaxLayerKernel::reset(), NEMinMaxLayerKernel::reset(), CLElementwiseOperationKernel::run(), GCDepthwiseConvolutionLayer3x3Kernel::run(), CLFlattenLayerKernel::run(), NETileKernel::run(), CLLocallyConnectedMatrixMultiplyKernel::run(), CLPoolingLayerKernel::run(), CLDepthwiseConvolutionLayerReshapeWeightsGenericKernel::run(), CLComparisonKernel::run(), NEFlattenLayerKernel::run(), NEReorgLayerKernel::run(), CLPixelWiseMultiplicationKernel::run(), CLCropKernel::run(), CLStackLayerKernel::run(), CLDirectConvolutionLayerOutputStageKernel::run(), NEMinMaxLayerKernel::run(), GCWeightsReshapeKernel::run(), NEStackLayerKernel::run(), NEPixelWiseMultiplicationKernel::run(), CLCol2ImKernel::run(), CLDirectConvolutionLayerKernel::run(), CLWinogradFilterTransformKernel::run(), NEGEMMLowpOffsetContributionKernel::run(), CLWinogradOutputTransformKernel::run(), CLWeightsReshapeKernel::run(), CLIm2ColKernel::run(), CLComplexPixelWiseMultiplicationKernel::run(), NEComplexPixelWiseMultiplicationKernel::run(), SubTensorInfo::set_tensor_shape(), SubTensorInfo::set_valid_region(), Accessor::shape(), arm_compute::test::validation::TEST_CASE(), AccessWindowStatic::update_padding_if_needed(), AccessWindowStatic::update_window_if_needed(), AccessWindowRectangle::update_window_if_needed(), CLReduceMean::validate(), NEReduceMean::validate(), NEUnstack::validate(), CLUnstack::validate(), CLRNNLayer::validate(), CLFFT1D::validate(), NEFFT1D::validate(), NEL2NormalizeLayer::validate(), CLL2NormalizeLayer::validate(), CLReductionOperation::validate(), NEPadLayer::validate(), CLCropKernel::validate(), CLSoftmaxLayer::validate(), NEGatherKernel::validate(), NERNNLayer::validate(), CLPadLayer::validate(), NESelectKernel::validate(), NESoftmaxLayer::validate(), NEDepthwiseConvolutionAssemblyDispatch::validate(), NECropKernel::validate(), NECropResize::validate(), CLCropResize::validate(), CLWinogradConvolutionLayer::validate(), CLDepthwiseConvolutionLayer3x3::validate(), NEGEMMLowpMatrixMultiplyCore::validate(), CLFFTConvolutionLayer::validate(), NEFFTConvolutionLayer::validate(), NEDeconvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), NEFullyConnectedLayer::validate(), CLFullyConnectedLayer::validate(), CLLSTMLayerQuantized::validate(), NELSTMLayerQuantized::validate(), NEGEMMConvolutionLayer::validate(), CLGEMMConvolutionLayer::validate(), CLDepthwiseConvolutionLayer::validate(), NEDepthwiseConvolutionLayer::validate(), and arm_compute::validate_and_configure_window().

◆ total_size()

virtual size_t total_size ( ) const
pure virtual

Returns the total size of the tensor in bytes.

Returns
Total size of the tensor in bytes.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by CLROIPoolingLayerKernel::configure(), NEROIPoolingLayerKernel::configure(), CLGEMMConvolutionLayer::configure(), SubTensorInfo::extend_padding(), CPPUpsampleKernel::run(), NECannyEdge::run(), CLWinogradOutputTransformKernel::run(), NELogits1DSoftmaxKernel::run(), NELSTMLayer::run(), Accessor::size(), arm_compute::test::validation::TEST_CASE(), SubTensorInfo::total_size(), AccessWindowStatic::update_window_if_needed(), AccessWindowRectangle::update_window_if_needed(), NEFFT2D::validate(), CLFFT2D::validate(), CLReduceMean::validate(), NEReduceMean::validate(), CLFFT1D::validate(), NEFFT1D::validate(), CLConvertFullyConnectedWeightsKernel::validate(), NEUpsampleLayerKernel::validate(), NEConvolutionLayerReshapeWeights::validate(), NEPadLayer::validate(), CLCropKernel::validate(), NEConvertFullyConnectedWeightsKernel::validate(), CLConvolutionLayerReshapeWeights::validate(), CLPadLayer::validate(), NEGatherKernel::validate(), NESelectKernel::validate(), NEDepthwiseConvolutionAssemblyDispatch::validate(), NECropKernel::validate(), NECropResize::validate(), NEGEMM::validate(), CLCropResize::validate(), CLGEMMLowpMatrixMultiplyCore::validate(), CLDepthwiseConvolutionLayer3x3::validate(), CLGenerateProposalsLayer::validate(), NEFFTConvolutionLayer::validate(), CLFFTConvolutionLayer::validate(), CLLSTMLayerQuantized::validate(), NELSTMLayerQuantized::validate(), and CLGEMMConvolutionLayer::validate().

◆ valid_region()

virtual ValidRegion valid_region ( ) const
pure virtual

Valid region of the tensor.

All elements in the valid region have defined values, i.e. are not undefined.

Returns
The valid region.

Implemented in TensorInfo, and SubTensorInfo.

Referenced by CLIntegralImageHorKernel::configure(), CLDilateKernel::configure(), CLMedian3x3Kernel::configure(), CLErodeKernel::configure(), CLBox3x3Kernel::configure(), CLGaussian3x3Kernel::configure(), CLNonMaximaSuppression3x3Kernel::configure(), NEIntegralImageKernel::configure(), GCTransposeKernel::configure(), NEDilateKernel::configure(), NEErodeKernel::configure(), NEGaussian3x3Kernel::configure(), NEMedian3x3Kernel::configure(), GCScaleKernel::configure(), NEBox3x3Kernel::configure(), NELogits1DMaxKernel::configure(), NEGaussian5x5HorKernel::configure(), CLNonLinearFilterKernel::configure(), CLGradientKernel::configure(), CLBitwiseOrKernel::configure(), CLBitwiseAndKernel::configure(), CLBitwiseXorKernel::configure(), CLSobel3x3Kernel::configure(), CLDerivativeKernel::configure(), ICLSimpleKernel::configure(), IGCSimpleKernel::configure(), GCPixelWiseMultiplicationKernel::configure(), CLSobel5x5HorKernel::configure(), CLSobel7x7HorKernel::configure(), INEWarpKernel::configure(), GCFillBorderKernel::configure(), GCGEMMMatrixAdditionKernel::configure(), CLFillBorderKernel::configure(), GCNormalizationLayerKernel::configure(), GCAbsoluteDifferenceKernel::configure(), CLAbsoluteDifferenceKernel::configure(), CLChannelExtractKernel::configure(), NEBitwiseNotKernel::configure(), NEBitwiseAndKernel::configure(), CLColorConvertKernel::configure(), NEBitwiseOrKernel::configure(), NEBitwiseXorKernel::configure(), CLMagnitudePhaseKernel::configure(), NEDerivativeKernel::configure(), CLChannelCombineKernel::configure(), NEFastCornersKernel::configure(), CLConvolutionKernel< matrix_size >::configure(), NEColorConvertKernel::configure(), NEThresholdKernel::configure(), NENonLinearFilterKernel::configure(), NEAbsoluteDifferenceKernel::configure(), CLIntegralImageVertKernel::configure(), NEChannelExtractKernel::configure(), NESobel7x7HorKernel::configure(), NEMagnitudePhaseKernel< mag_type, phase_type >::configure(), NESobel5x5HorKernel::configure(), NENonMaximaSuppression3x3Kernel::configure(), GCLogits1DShiftExpSumKernel::configure(), NEGradientKernel::configure(), NEHOGDetectorKernel::configure(), NESelectKernel::configure(), CLHarrisScoreKernel::configure(), NEChannelCombineKernel::configure(), CLFastCornersKernel::configure(), NEFuseBatchNormalizationKernel::configure(), CLHOGDetectorKernel::configure(), NEROIPoolingLayerKernel::configure(), NEConvolutionKernel< matrix_size >::configure(), CLScharr3x3Kernel::configure(), NEScharr3x3Kernel::configure(), NESobel3x3Kernel::configure(), NEGaussian5x5VertKernel::configure(), GCCol2ImKernel::configure(), CLEdgeNonMaxSuppressionKernel::configure(), NEHarrisScoreKernel< block_size >::configure(), CLSeparableConvolutionHorKernel< matrix_size >::configure(), GCLogits1DNormKernel::configure(), CLSobel5x5VertKernel::configure(), CLSobel7x7VertKernel::configure(), CLCopyToArrayKernel::configure(), NESobel5x5VertKernel::configure(), NESobel7x7VertKernel::configure(), NESeparableConvolutionHorKernel< matrix_size >::configure(), NEEdgeNonMaxSuppressionKernel::configure(), CLSeparableConvolutionVertKernel< matrix_size >::configure(), CLEdgeTraceKernel::configure(), CLLKTrackerStage0Kernel::configure(), NESeparableConvolutionVertKernel< matrix_size >::configure(), CLConvolutionRectangleKernel::configure(), CLLKTrackerStage1Kernel::configure(), NEEdgeTraceKernel::configure(), NEConvolutionRectangleKernel::configure(), arm_compute::test::validation::DATA_TEST_CASE(), NEMemsetKernel::run(), NELogits1DSoftmaxKernel::run(), and SubTensorInfo::set_valid_region().


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