From 6f92c8e9f8bb38dcf5dccf8deeff5112ecd8e37c Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 22 Nov 2023 11:41:15 +0000 Subject: Update Doxygen for 23.11 Signed-off-by: Nikhil Raj Change-Id: I47cd933f5002cb94a73aa97689d7b3d9c93cb849 --- 23.11/namespacearmnn_onnx_parser.html | 257 ++++++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 23.11/namespacearmnn_onnx_parser.html (limited to '23.11/namespacearmnn_onnx_parser.html') diff --git a/23.11/namespacearmnn_onnx_parser.html b/23.11/namespacearmnn_onnx_parser.html new file mode 100644 index 0000000000..a9749b54ba --- /dev/null +++ b/23.11/namespacearmnn_onnx_parser.html @@ -0,0 +1,257 @@ + + + + + + + + +Arm NN: armnnOnnxParser Namespace Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
armnnOnnxParser Namespace Reference
+
+
+ + + + + + +

+Classes

class  IOnnxParser
 
class  OnnxParserImpl
 
+ + + + + + + +

+Typedefs

using BindingPointInfo = armnn::BindingPointInfo
 
using IOnnxParserPtr = std::unique_ptr< IOnnxParser, void(*)(IOnnxParser *parser)>
 
using ModelPtr = std::unique_ptr< onnx::ModelProto >
 
+ + + + +

+Functions

template<typename T >
std::pair< armnn::ConstTensor, std::unique_ptr< T[]> > CreateConstTensorImpl (const T *bufferPtr, armnn::TensorInfo &tensorInfo, const armnn::Optional< armnn::PermutationVector & > permutationVector)
 
+

Typedef Documentation

+ +

◆ BindingPointInfo

+ +
+
+ +

Definition at line 17 of file IOnnxParser.hpp.

+ +
+
+ +

◆ IOnnxParserPtr

+ +
+
+ + + + +
using IOnnxParserPtr = std::unique_ptr<IOnnxParser, void(*)(IOnnxParser* parser)>
+
+ +

Definition at line 21 of file IOnnxParser.hpp.

+ +
+
+ +

◆ ModelPtr

+ +
+
+ + + + +
using ModelPtr = std::unique_ptr<onnx::ModelProto>
+
+ +

Definition at line 23 of file OnnxParser.hpp.

+ +
+
+

Function Documentation

+ +

◆ CreateConstTensorImpl()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
std::pair<armnn::ConstTensor, std::unique_ptr<T[]> > armnnOnnxParser::CreateConstTensorImpl (const T * bufferPtr,
armnn::TensorInfotensorInfo,
const armnn::Optional< armnn::PermutationVector & > permutationVector 
)
+
+ +

Definition at line 602 of file OnnxParser.cpp.

+
605 {
+
606  if (bufferPtr == nullptr)
+
607  {
+
608  throw armnn::ParseException(fmt::format("Buffer for permutation is null {}", CHECK_LOCATION().AsString()));
+
609  }
+
610 
+
611  std::unique_ptr<T[]> data(new T[tensorInfo.GetNumElements()]);
+
612 
+
613  if (permutationVector.has_value() && permutationVector.value().GetSize() > 0)
+
614  {
+
615  tensorInfo = armnnUtils::Permuted(tensorInfo, permutationVector.value());
+
616  armnnUtils::Permute(tensorInfo.GetShape(), permutationVector.value(),
+
617  reinterpret_cast<const T*>(bufferPtr), data.get(), sizeof(T));
+
618  }
+
619  else
+
620  {
+
621  ::memcpy(data.get(), bufferPtr, tensorInfo.GetNumBytes());
+
622  }
+
623 
+
624  return std::make_pair(ConstTensor(tensorInfo, data.get()), std::move(data));
+
625 }
+
+

References CHECK_LOCATION, TensorInfo::GetNumBytes(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), PermutationVector::GetSize(), OptionalBase::has_value(), armnnUtils::Permute(), armnnUtils::Permuted(), and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().

+ +
+
+
+
+
unsigned int GetNumElements() const
Definition: Tensor.hpp:196
+
unsigned int GetNumBytes() const
Definition: Tensor.cpp:427
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
+
void Permute(const armnn::TensorShape &dstShape, const armnn::PermutationVector &mappings, const void *src, void *dst, size_t dataTypeSize)
Definition: Permute.cpp:164
+
armnn::TensorShape Permuted(const armnn::TensorShape &srcShape, const armnn::PermutationVector &mappings)
Definition: Permute.cpp:125
+
const TensorShape & GetShape() const
Definition: Tensor.hpp:191
+ +
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
Definition: Tensor.hpp:327
+ +
bool has_value() const noexcept
Definition: Optional.hpp:53
+ + + + -- cgit v1.2.1