ArmNN
 24.08
ScatterNdQueueDescriptor Struct Reference

#include <WorkloadData.hpp>

Inheritance diagram for ScatterNdQueueDescriptor:
[legend]
Collaboration diagram for ScatterNdQueueDescriptor:
[legend]

Public Member Functions

void Validate (const WorkloadInfo &workloadInfo) const
 
- Public Member Functions inherited from QueueDescriptorWithParameters< ScatterNdDescriptor >
virtual ~QueueDescriptorWithParameters ()=default
 
- Public Member Functions inherited from QueueDescriptor
virtual ~QueueDescriptor ()=default
 
void ValidateTensorNumDimensions (const TensorInfo &tensor, std::string const &descName, unsigned int numDimensions, std::string const &tensorName) const
 
void ValidateTensorNumDimNumElem (const TensorInfo &tensorInfo, unsigned int numDimension, unsigned int numElements, std::string const &tensorName) const
 
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 QueueDescriptorWithParameters< ScatterNdDescriptor >
ScatterNdDescriptor m_Parameters
 
- Public Attributes inherited from QueueDescriptor
std::vector< ITensorHandle * > m_Inputs
 
std::vector< ITensorHandle * > m_Outputs
 
void * m_AdditionalInfoObject
 
bool m_AllowExpandedDims = false
 
- Protected Member Functions inherited from QueueDescriptorWithParameters< ScatterNdDescriptor >
 QueueDescriptorWithParameters ()=default
 
 QueueDescriptorWithParameters (QueueDescriptorWithParameters const &)=default
 
QueueDescriptorWithParametersoperator= (QueueDescriptorWithParameters const &)=default
 
- Protected Member Functions inherited from QueueDescriptor
 QueueDescriptor ()
 
 QueueDescriptor (QueueDescriptor const &)=default
 
QueueDescriptoroperator= (QueueDescriptor const &)=default
 

Detailed Description

Definition at line 773 of file WorkloadData.hpp.

Member Function Documentation

◆ Validate()

void Validate ( const WorkloadInfo workloadInfo) const

Definition at line 4451 of file WorkloadData.cpp.

4452 {
4453  const std::string& descriptorName{"ScatterQueueDescriptor"};
4454 
4455  ValidateNumInputs(workloadInfo, descriptorName, 3);
4456  ValidateNumOutputs(workloadInfo, descriptorName, 1);
4457 
4458  const TensorInfo& inputTensorInfo0 = workloadInfo.m_InputTensorInfos[0];
4459  const TensorInfo& inputTensorInfo1 = workloadInfo.m_InputTensorInfos[1];
4460  const TensorInfo& inputTensorInfo2 = workloadInfo.m_InputTensorInfos[2];
4461  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
4462 
4463  std::vector<DataType> supportedTypes =
4464  {
4472  };
4473 
4474  std::vector<DataType> indicesSupportedTypes =
4475  {
4477  };
4478 
4480  {
4481  ValidateDataTypes(inputTensorInfo0, supportedTypes, descriptorName);
4482  }
4483  else
4484  {
4485  ValidateDataTypes(inputTensorInfo0, indicesSupportedTypes, descriptorName);
4486  }
4487 
4488  ValidateDataTypes(inputTensorInfo1, indicesSupportedTypes, descriptorName);
4489  ValidateDataTypes(inputTensorInfo2, supportedTypes, descriptorName);
4490  ValidateDataTypes(outputTensorInfo, supportedTypes, descriptorName);
4491 }

References armnn::Float16, armnn::Float32, ScatterNdDescriptor::m_InputEnabled, WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, QueueDescriptorWithParameters< ScatterNdDescriptor >::m_Parameters, armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, armnn::QSymmS8, and armnn::Signed32.


The documentation for this struct was generated from the following files:
armnn::ScatterNdDescriptor::m_InputEnabled
bool m_InputEnabled
Flag to show if input tensor is accepted.
Definition: Descriptors.hpp:1722
armnn::TensorInfo
Definition: Tensor.hpp:152
armnn::DataType::Float32
@ Float32
armnn::DataType::QAsymmU8
@ QAsymmU8
armnn::DataType::QSymmS8
@ QSymmS8
armnn::DataType::QSymmS16
@ QSymmS16
armnn::DataType::Float16
@ Float16
armnn::WorkloadInfo::m_OutputTensorInfos
std::vector< TensorInfo > m_OutputTensorInfos
Definition: WorkloadInfo.hpp:19
armnn::QueueDescriptorWithParameters< ScatterNdDescriptor >::m_Parameters
ScatterNdDescriptor m_Parameters
Definition: WorkloadData.hpp:66
armnn::DataType::Signed32
@ Signed32
armnn::DataType::QAsymmS8
@ QAsymmS8
armnn::WorkloadInfo::m_InputTensorInfos
std::vector< TensorInfo > m_InputTensorInfos
Definition: WorkloadInfo.hpp:18