From 1dc83febfb76d6a770bdf3ba16c4034a970c2320 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Thu, 16 May 2024 09:47:51 +0100 Subject: IVGCVSW-8260 Update Doxgen Docu for 24.05 Signed-off-by: Nikhil Raj Change-Id: If4bc983bf2793a27ded8e26ac2b29523fc1e4711 --- ...ructarmnn_1_1_arg_min_max_queue_descriptor.html | 134 ++++++++++----------- 1 file changed, 67 insertions(+), 67 deletions(-) (limited to 'latest/structarmnn_1_1_arg_min_max_queue_descriptor.html') diff --git a/latest/structarmnn_1_1_arg_min_max_queue_descriptor.html b/latest/structarmnn_1_1_arg_min_max_queue_descriptor.html index 77161fd30e..ccc08c7c4f 100644 --- a/latest/structarmnn_1_1_arg_min_max_queue_descriptor.html +++ b/latest/structarmnn_1_1_arg_min_max_queue_descriptor.html @@ -36,7 +36,7 @@ ArmNN
-  24.02 +  24.05
@@ -183,71 +183,71 @@ Additional Inherited Members
-

Definition at line 628 of file WorkloadData.cpp.

-
629 {
-
630  const std::string descriptorName{"ArgMinMaxQueueDescriptor"};
-
631 
-
632  ValidateNumInputs(workloadInfo, descriptorName, 1);
-
633  ValidateNumOutputs(workloadInfo, descriptorName, 1);
-
634 
-
635  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
-
636  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
-
637 
-
638  if (outputTensorInfo.GetDataType() != DataType::Signed32 &&
-
639  outputTensorInfo.GetDataType() != DataType::Signed64)
-
640  {
-
641  throw InvalidArgumentException(descriptorName + ": Output of ArgMinMax layer must be Int32 or Int64.");
-
642  }
-
643 
-
644  std::vector<DataType> supportedInputTypes =
-
645  {
- - - - - - - - -
654  };
-
655 
-
656  ValidateDataTypes(inputTensorInfo, supportedInputTypes, descriptorName);
-
657 
-
658  auto inputShape = inputTensorInfo.GetShape();
-
659  auto outputShape = outputTensorInfo.GetShape();
-
660 
-
661  auto inputNumDimensions = inputShape.GetNumDimensions();
-
662  auto unsignedAxis = armnnUtils::GetUnsignedAxis(inputNumDimensions, m_Parameters.m_Axis);
-
663 
-
664  const std::string outputShapeError{": Output tensor shape does not match shape inferred from input tensor."};
-
665 
-
666  // 1D input shape results in scalar output shape
-
667  if (inputShape.GetNumDimensions() == 1)
-
668  {
-
669  if (outputShape.GetNumDimensions() != 1 && outputShape[0] != 1)
-
670  {
-
671  throw InvalidArgumentException(descriptorName + outputShapeError);
-
672  }
-
673  }
-
674  else
-
675  {
-
676  for (unsigned int i = 0; i < unsignedAxis; ++i)
-
677  {
-
678  if (outputShape[i] != inputShape[i])
-
679  {
-
680  throw InvalidArgumentException(descriptorName + outputShapeError);
-
681  }
-
682  }
-
683 
-
684  for (auto i = unsignedAxis + 1; i < inputNumDimensions; ++i)
-
685  {
-
686  if (outputShape[i - 1] != inputShape[i])
-
687  {
-
688  throw InvalidArgumentException(descriptorName + outputShapeError);
-
689  }
-
690  }
-
691  }
-
692 }
+

Definition at line 629 of file WorkloadData.cpp.

+
630 {
+
631  const std::string descriptorName{"ArgMinMaxQueueDescriptor"};
+
632 
+
633  ValidateNumInputs(workloadInfo, descriptorName, 1);
+
634  ValidateNumOutputs(workloadInfo, descriptorName, 1);
+
635 
+
636  const TensorInfo& inputTensorInfo = workloadInfo.m_InputTensorInfos[0];
+
637  const TensorInfo& outputTensorInfo = workloadInfo.m_OutputTensorInfos[0];
+
638 
+
639  if (outputTensorInfo.GetDataType() != DataType::Signed32 &&
+
640  outputTensorInfo.GetDataType() != DataType::Signed64)
+
641  {
+
642  throw InvalidArgumentException(descriptorName + ": Output of ArgMinMax layer must be Int32 or Int64.");
+
643  }
+
644 
+
645  std::vector<DataType> supportedInputTypes =
+
646  {
+ + + + + + + + +
655  };
+
656 
+
657  ValidateDataTypes(inputTensorInfo, supportedInputTypes, descriptorName);
+
658 
+
659  auto inputShape = inputTensorInfo.GetShape();
+
660  auto outputShape = outputTensorInfo.GetShape();
+
661 
+
662  auto inputNumDimensions = inputShape.GetNumDimensions();
+
663  auto unsignedAxis = armnnUtils::GetUnsignedAxis(inputNumDimensions, m_Parameters.m_Axis);
+
664 
+
665  const std::string outputShapeError{": Output tensor shape does not match shape inferred from input tensor."};
+
666 
+
667  // 1D input shape results in scalar output shape
+
668  if (inputShape.GetNumDimensions() == 1)
+
669  {
+
670  if (outputShape.GetNumDimensions() != 1 && outputShape[0] != 1)
+
671  {
+
672  throw InvalidArgumentException(descriptorName + outputShapeError);
+
673  }
+
674  }
+
675  else
+
676  {
+
677  for (unsigned int i = 0; i < unsignedAxis; ++i)
+
678  {
+
679  if (outputShape[i] != inputShape[i])
+
680  {
+
681  throw InvalidArgumentException(descriptorName + outputShapeError);
+
682  }
+
683  }
+
684 
+
685  for (auto i = unsignedAxis + 1; i < inputNumDimensions; ++i)
+
686  {
+
687  if (outputShape[i - 1] != inputShape[i])
+
688  {
+
689  throw InvalidArgumentException(descriptorName + outputShapeError);
+
690  }
+
691  }
+
692  }
+
693 }

References armnn::BFloat16, armnn::Float16, armnn::Float32, TensorInfo::GetDataType(), TensorShape::GetNumDimensions(), TensorInfo::GetShape(), armnnUtils::GetUnsignedAxis(), ArgMinMaxDescriptor::m_Axis, WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, QueueDescriptorWithParameters< ArgMinMaxDescriptor >::m_Parameters, armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, armnn::Signed32, and armnn::Signed64.

@@ -281,7 +281,7 @@ Additional Inherited Members