Compute Library
 21.05
CLNodeValidator Class Referencefinal

#include <CLNodeValidator.h>

Static Public Member Functions

static Status validate (INode *node)
 Validate a node. More...
 

Detailed Description

Definition at line 38 of file CLNodeValidator.h.

Member Function Documentation

◆ validate()

Status validate ( INode node)
static

Validate a node.

Parameters
[in]nodeNode to validate
Returns
An error status

Definition at line 68 of file CLNodeValidator.cpp.

69 {
70  if(node == nullptr)
71  {
72  return Status{};
73  }
74 
75  NodeType type = node->type();
76  switch(type)
77  {
79  return detail::validate_arg_min_max_layer<CLArgMinMaxLayer>(*polymorphic_downcast<ArgMinMaxLayerNode *>(node));
81  return detail::validate_bounding_box_transform_layer<CLBoundingBoxTransform>(*polymorphic_downcast<BoundingBoxTransformLayerNode *>(node));
83  return detail::validate_channel_shuffle_layer<CLChannelShuffleLayer>(*polymorphic_downcast<ChannelShuffleLayerNode *>(node));
85  return detail::validate_convolution_layer<CLConvolutionLayer,
86  CLDirectConvolutionLayer,
87  CLGEMMConvolutionLayer,
88  CLWinogradConvolutionLayer>(*polymorphic_downcast<ConvolutionLayerNode *>(node));
90  return detail::validate_depth_to_space_layer<CLDepthToSpaceLayer>(*polymorphic_downcast<DepthToSpaceLayerNode *>(node));
92  return detail::validate_depthwise_convolution_layer<CLDepthwiseConvolutionLayer>(*polymorphic_downcast<DepthwiseConvolutionLayerNode *>(node));
94  return detail::validate_dequantization_layer<CLDequantizationLayer>(*polymorphic_downcast<DequantizationLayerNode *>(node));
96  return detail::validate_detection_output_layer<CPPDetectionOutputLayer>(*polymorphic_downcast<DetectionOutputLayerNode *>(node));
98  return detail::validate_detection_post_process_layer<CPPDetectionPostProcessLayer>(*polymorphic_downcast<DetectionPostProcessLayerNode *>(node));
100  return detail::validate_generate_proposals_layer<CLGenerateProposalsLayer>(*polymorphic_downcast<GenerateProposalsLayerNode *>(node));
102  return detail::validate_l2_normalize_layer<CLL2NormalizeLayer>(*polymorphic_downcast<L2NormalizeLayerNode *>(node));
104  return detail::validate_normalize_planar_yuv_layer<CLNormalizePlanarYUVLayer>(*polymorphic_downcast<NormalizePlanarYUVLayerNode *>(node));
105  case NodeType::PadLayer:
106  return detail::validate_pad_layer<CLPadLayer>(*polymorphic_downcast<PadLayerNode *>(node));
108  return detail::validate_permute_layer<CLPermute>(*polymorphic_downcast<PermuteLayerNode *>(node));
110  return detail::validate_prelu_layer<CLPReluLayer>(*polymorphic_downcast<PReluLayerNode *>(node));
112  return detail::validate_priorbox_layer<CLPriorBoxLayer>(*polymorphic_downcast<PriorBoxLayerNode *>(node));
114  return detail::validate_quantization_layer<CLQuantizationLayer>(*polymorphic_downcast<QuantizationLayerNode *>(node));
116  return detail::validate_reduction_operation_layer<CLReductionOperation>(*polymorphic_downcast<ReductionLayerNode *>(node));
118  return detail::validate_reorg_layer<CLReorgLayer>(*polymorphic_downcast<ReorgLayerNode *>(node));
120  return detail::validate_reshape_layer<CLReshapeLayer>(*polymorphic_downcast<ReshapeLayerNode *>(node));
122  return detail::validate_roi_align_layer<CLROIAlignLayer>(*polymorphic_downcast<ROIAlignLayerNode *>(node));
124  return detail::validate_slice_layer<CLSlice>(*polymorphic_downcast<SliceLayerNode *>(node));
126  return detail::validate_strided_slice_layer<CLStridedSlice>(*polymorphic_downcast<StridedSliceLayerNode *>(node));
128  return detail::validate_eltwise_Layer<CLEltwiseLayerFunctions>(*polymorphic_downcast<EltwiseLayerNode *>(node));
130  return detail::validate_unary_eltwise_layer<CLUnaryEltwiseLayerFunctions>(*polymorphic_downcast<UnaryEltwiseLayerNode *>(node));
131  default:
132  return Status{};
133  }
134 }
decltype(strategy::transforms) typedef type
NodeType
Supported nodes.
Definition: Types.h:148
Status validate_convolution_layer(ConvolutionLayerNode &node)
Validates a Convolution layer node.

References INode::type(), type, and arm_compute::graph::backends::detail::validate_convolution_layer().

Referenced by CLDeviceBackend::validate_node().


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