ArmNN
 21.11
SwitchQueueDescriptor Struct Reference

#include <WorkloadData.hpp>

Inheritance diagram for SwitchQueueDescriptor:
QueueDescriptor

Public Member Functions

void Validate (const WorkloadInfo &workloadInfo) const
 
- Public Member Functions inherited from QueueDescriptor
void ValidateInputsOutputs (const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
 
template<typename T >
const T * GetAdditionalInformation () const
 

Additional Inherited Members

- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
- Protected Member Functions inherited from QueueDescriptor
 ~QueueDescriptor ()=default
 
 QueueDescriptor ()
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 

Detailed Description

Definition at line 552 of file WorkloadData.hpp.

Member Function Documentation

◆ Validate()

void Validate ( const WorkloadInfo workloadInfo) const

Definition at line 2866 of file WorkloadData.cpp.

References armnn::BFloat16, armnn::Float32, WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, armnn::QAsymmS8, armnn::QAsymmU8, and armnn::QSymmS16.

2867 {
2868  const std::string& descriptorName{"SwitchQueueDescriptor"};
2869 
2870  ValidateNumInputs(workloadInfo, descriptorName, 2);
2871  ValidateNumOutputs(workloadInfo, descriptorName, 2);
2872 
2873  const TensorInfo& inputTensorInfo0 = workloadInfo.m_InputTensorInfos[0];
2874  const TensorInfo& inputTensorInfo1 = workloadInfo.m_InputTensorInfos[1];
2875 
2876  const TensorInfo& outputTensorInfo0 = workloadInfo.m_OutputTensorInfos[0];
2877  const TensorInfo& outputTensorInfo1 = workloadInfo.m_OutputTensorInfos[1];
2878 
2879  std::vector<DataType> supportedTypes =
2880  {
2886  };
2887 
2888  ValidateDataTypes(inputTensorInfo0, supportedTypes, descriptorName);
2889  ValidateDataTypes(inputTensorInfo1, supportedTypes, descriptorName);
2890 
2891  ValidateDataTypes(outputTensorInfo0, supportedTypes, descriptorName);
2892  ValidateDataTypes(outputTensorInfo1, supportedTypes, descriptorName);
2893 
2894  ValidateTensorShapesMatch(inputTensorInfo0,
2895  outputTensorInfo0,
2896  descriptorName,
2897  "input_0",
2898  "output_0");
2899 
2900  ValidateTensorShapesMatch(inputTensorInfo0,
2901  outputTensorInfo1,
2902  descriptorName,
2903  "input_0",
2904  "output_1");
2905 }
std::vector< TensorInfo > m_InputTensorInfos
std::vector< TensorInfo > m_OutputTensorInfos

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