23.11
|
Go to the documentation of this file.
24 #ifndef ACL_ARM_COMPUTE_GRAPH_BACKENDS_VALIDATEHELPERS_H
25 #define ACL_ARM_COMPUTE_GRAPH_BACKENDS_VALIDATEHELPERS_H
51 return ((
tensor ==
nullptr) || (
tensor->handle() ==
nullptr)) ? nullptr :
tensor->handle()->tensor().info();
62 template <
typename ArgMinMaxLayer>
66 "Validating ArgMinMaxLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
86 template <
typename BoundingBoxTransformLayer>
90 << node.
name() << std::endl);
111 template <
typename ChannelShuffleLayer>
115 "Validating ChannelShuffle node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
139 typename DirectConvolutionLayer,
140 typename GEMMConvolutionLayer,
141 typename WinogradConvolutionLayer>
145 "Validating ConvolutionLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
167 switch (conv_algorithm)
201 template <
typename DepthwiseConvolutionLayer>
205 << node.
name() << std::endl);
221 switch (dwc_algorithm)
241 template <
typename DepthToSpaceLayer>
245 "Validating DetectionOutputLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
263 template <
typename DequantizationLayer>
267 "Validating DetectionOutputLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
285 template <
typename DetectionOutputLayer>
289 "Validating DetectionOutputLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
310 template <
typename DetectionPostProcessLayer>
314 << node.
name() << std::endl);
339 template <
typename GenerateProposalsLayer>
343 "Validating GenerateProposalsLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
367 template <
typename L2NormalizeLayer>
371 "Validating L2NormalizeLayerNode node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
378 int axis = node.
axis();
393 template <
typename NormalizePlanarYUVLayer>
397 "Validating NormalizePlanarYUVLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
419 template <
typename PadLayer>
443 template <
typename PermuteLayer>
467 template <
typename PReluLayer>
491 template <
typename PriorBoxLayer>
495 "Validating PriorBoxLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
516 template <
typename QuantizationLayer>
520 "Validating QuantizationLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
540 template <
typename ReductionLayer>
544 "Validating ReductionLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
565 template <
typename ReorgLayer>
589 template <
typename ReshapeLayer>
613 template <
typename ROIAlignLayer>
617 "Validating ROIAlignLayer node with ID : " << node.
id() <<
" and Name: " << node.
name() << std::endl);
639 template <
typename SliceLayer>
664 template <
typename Str
idedSliceLayer>
681 info.shrink_axis_mask());
690 template <
typename EltwiseLayerFunctions>
742 template <
typename UnaryEltwiseLayerFunctions>
772 #endif // ACL_ARM_COMPUTE_GRAPH_BACKENDS_VALIDATEHELPERS_H
@ Default
Default approach using internal heuristics.
@ Mul
Arithmetic multiplication.
descriptors::UnaryEltwiseLayerDescriptor eltwise_descriptor() const
Unary eltwise layer descriptor.
int stride() const
Stride value to use for reorganizing the values in the output tensor.
Convolution Layer Weights Information class.
Status validate_unary_eltwise_layer(UnaryEltwiseLayerNode &node)
Validates a unary element-wise layer node.
Status validate_reorg_layer(ReorgLayerNode &node)
Validates a Reorg layer node.
ConvolutionMethod convolution_method() const
Convolution layer method accessor.
Status validate_slice_layer(SliceLayerNode &node)
Validates a Slice layer node.
Quantization information.
std::vector< PaddingInfo > PaddingList
List of padding information.
@ Enabled
Fast math enabled for Convolution layer.
FastMathHint fast_math_hint() const
Fast math hint accessor.
PriorBoxLayerInfo priorbox_info() const
PriorBox metadata accessor.
@ Direct
Deep direct convolution.
Status validate_convolution_layer(ConvolutionLayerNode &node)
Validates a Convolution layer node.
Status validate_prelu_layer(PReluLayerNode &node)
Validates a PRelu layer node.
Coordinates ends() const
End coordinates accessor.
Channel Shuffle Layer node.
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
size_t num_inputs() const
Returns number of inputs of the node.
Class for specifying the size of an image or rectangle.
ConvertPolicy convert_policy() const
Convert policy accessor.
Reduction Operation node.
Status validate_pad_layer(PadLayerNode &node)
Validates a pad layer node.
Unary Eltwise Layer node.
unsigned int num_groups() const
Number of groups in convolution accessor.
UnaryEltwiseOperation op
Unary element-wise operation to perform.
virtual ITensorInfo & set_data_type(DataType data_type)=0
Set the data type to the specified value.
#define ARM_COMPUTE_LOG_GRAPH_VERBOSE(x)
const PaddingList & padding() const
Padding list accessor.
Coordinates starts() const
Start coordinates accessor.
ReductionOperation op() const
op accessor
const GenerateProposalsInfo & info() const
GenerateProposalsInfo accessor.
@ Sub
Arithmetic subtraction.
Status validate_depth_to_space_layer(DepthToSpaceLayerNode &node)
Validates a depth to space layer node.
int axis() const
axis accessors
Status validate_permute_layer(PermuteLayerNode &node)
Validates a permute layer node.
@ Div
Arithmetic division.
DepthwiseConvolutionMethod depthwise_convolution_method() const
Depthwise convolution layer method accessor.
Activation Layer Information class.
Strides of an item in bytes.
Status validate_reduction_operation_layer(ReductionLayerNode &node)
Validates a Reduction operation layer node.
Status validate_priorbox_layer(PriorBoxLayerNode &node)
Validates a priorbox layer node.
Status validate_arg_min_max_layer(ArgMinMaxLayerNode &node)
Validates a ArgMinMax layer node.
const PermutationVector & permutation_vector() const
Permutation vector accessor.
bool keep_dims() const
keep_dims accessor
Status validate_roi_align_layer(ROIAlignLayerNode &node)
Validates a ROI Align layer node.
Status validate_dequantization_layer(DequantizationLayerNode &node)
Validates a dequantize layer node.
Batch Normalization Layer node.
unsigned int axis() const
axis accessor
RoundingPolicy
Rounding method.
DetectionPostProcessLayerInfo detection_post_process_info() const
DetectionPostProcess metadata accessor.
#define ARM_COMPUTE_RETURN_ERROR_ON(cond)
If the condition is true, an error is returned.
Status validate_strided_slice_layer(StridedSliceLayerNode &node)
Validates a Strided Slice layer node.
ReductionOperation reduction_operation() const
Operator accessor.
Status validate_detection_post_process_layer(DetectionPostProcessLayerNode &node)
Validates a detection post process layer node.
unsigned int num_groups() const
Number of groups accessor.
Status validate_eltwise_Layer(EltwiseLayerNode &node)
Validates a element-wise layer node.
DetectionPostProcess Layer node.
Detection Output layer info.
Status validate_channel_shuffle_layer(ChannelShuffleLayerNode &node)
Validates a Channel Shuffle layer node.
int block_shape() const
Block shape policy accessor.
StridedSliceLayerInfo strided_slice_info() const
std::string name() const
Returns node's name.
@ GEMM
GEMM based convolution.
Status validate_depthwise_convolution_layer(DepthwiseConvolutionLayerNode &node)
Validates a Depthwise Convolution layer node.
CLTensor * tensor
Pointer to the auxiliary tensor.
Detection Output layer info.
DetectionOutputLayerInfo detection_output_info() const
DetectionOutput metadata accessor.
Status validate_bounding_box_transform_layer(BoundingBoxTransformLayerNode &node)
Validates a Bounding Box Transform layer node.
QuantizationInfo output_quant_info() const
Returns output quantization info.
const unsigned int num_groups
ConvolutionMethod
Supported Convolution layer methods.
@ Add
Arithmetic addition.
unsigned int axis() const
Axis accessor.
Generate Proposals Layer node.
#define ARM_COMPUTE_RETURN_ERROR_ON_MSG(cond, msg)
If the condition is true, an error is returned.
Status validate_generate_proposals_layer(GenerateProposalsLayerNode &node)
Validates a Generate Proposals layer node.
Status validate_detection_output_layer(DetectionOutputLayerNode &node)
Validates a detection output layer node.
Copyright (c) 2017-2023 Arm Limited.
Coordinates ends() const
End coordinates accessor.
ConvertPolicy
Policy to handle integer overflow.
PadStrideInfo convolution_info() const
Convolution metadata accessor.
ActivationLayerInfo fused_activation() const
Returns fused activation.
@ S32
signed 32-bit number
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.
bool is_data_type_quantized_asymmetric(DataType dt)
Check if a given data type is of asymmetric quantized type.
Status validate_reshape_layer(ReshapeLayerNode &node)
Validates a Reshape layer node.
size_t num_outputs() const
Returns number of outputs of the node.
@ Optimized3x3
Optimized 3x3 direct depthwise convolution.
Status validate(const ITensorInfo *scores_in, const ITensorInfo *boxes_in, const ITensorInfo *batch_splits_in, const ITensorInfo *scores_out, const ITensorInfo *boxes_out, const ITensorInfo *classes, const ITensorInfo *batch_splits_out, const ITensorInfo *keeps, const ITensorInfo *keeps_size, const BoxNMSLimitInfo info)
Store the tensor's metadata.
DepthwiseConvolutionMethod
Supported Depthwise Convolution layer methods.
Status validate_normalize_planar_yuv_layer(NormalizePlanarYUVLayerNode &node)
Validates a NormalizePlanarYUV layer node.
@ Default
Default approach using internal heuristics.
#define ARM_COMPUTE_RETURN_ERROR_MSG(...)
An error is returned with the given description.
arm_compute::ITensorInfo * get_backing_tensor_info(arm_compute::graph::Tensor *tensor)
Returns backing tensor info of a given tensor.
EltwiseOperation eltwise_operation() const
Eltwise operation accessor.
BiStrides strides() const
Strides vector accessor.
float epsilon() const
epsilon accessors
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Coordinates starts() const
Start coordinates accessor.
EltwiseOperation
Supported Element-wise operations.
@ Winograd
Winograd based convolution.
NodeID id() const
Returns node's ID.
int depth_multiplier() const
Depth multiplier accessor.
Status validate_l2_normalize_layer(L2NormalizeLayerNode &node)
Validates a L2Normalization layer node.
DetectionOutput Layer node.
ROI Pooling Layer Information class.
UnaryEltwiseOperation
Supported Unary Element-wise operations.
Generate Proposals Information class.
PadStrideInfo convolution_info() const
Convolution metadata accessor.
Depthwise Convolution Layer node.
const ROIPoolingLayerInfo & pooling_info() const
ROIPoolingLayerInfo accessor.
RoundingPolicy rounding_policy() const
Rounding policy accessor.
Status validate_quantization_layer(QuantizationLayerNode &node)
Validates a Quantization layer node.