From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- 22.02/classarmnn_1_1_q_symm16_decoder.xhtml | 343 ++++++++++++++++++++++++++++ 1 file changed, 343 insertions(+) create mode 100644 22.02/classarmnn_1_1_q_symm16_decoder.xhtml (limited to '22.02/classarmnn_1_1_q_symm16_decoder.xhtml') diff --git a/22.02/classarmnn_1_1_q_symm16_decoder.xhtml b/22.02/classarmnn_1_1_q_symm16_decoder.xhtml new file mode 100644 index 0000000000..2da389440b --- /dev/null +++ b/22.02/classarmnn_1_1_q_symm16_decoder.xhtml @@ -0,0 +1,343 @@ + + + + + + + + + + + + + +ArmNN: QSymm16Decoder Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
QSymm16Decoder Class Reference
+
+
+ +

#include <BaseIterator.hpp>

+
+Inheritance diagram for QSymm16Decoder:
+
+
+ + +TypedIterator< const int16_t, Decoder< float > > +Decoder< float > +BaseIterator + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 QSymm16Decoder (const int16_t *data, const float scale, const int32_t offset)
 
 QSymm16Decoder (const float scale, const int32_t offset)
 
float Get () const override
 
std::vector< float > DecodeTensor (const TensorShape &tensorShape, const bool isDepthwise) override
 
- Public Member Functions inherited from TypedIterator< const int16_t, Decoder< float > >
 TypedIterator (const int16_t *data=nullptr)
 
void Reset (void *data) override
 
TypedIteratoroperator++ () override
 
TypedIteratoroperator+= (const unsigned int increment) override
 
TypedIteratoroperator-= (const unsigned int increment) override
 
TypedIteratoroperator[] (const unsigned int index) override
 
- Public Member Functions inherited from Decoder< float >
 Decoder ()
 
virtual ~Decoder ()
 
- Public Member Functions inherited from BaseIterator
 BaseIterator ()
 
virtual ~BaseIterator ()
 
+ + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from TypedIterator< const int16_t, Decoder< float > >
const int16_t * m_Iterator
 
const int16_t * m_Start
 
+

Detailed Description

+
+

Definition at line 226 of file BaseIterator.hpp.

+

Constructor & Destructor Documentation

+ +

◆ QSymm16Decoder() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
QSymm16Decoder (const int16_t * data,
const float scale,
const int32_t offset 
)
+
+inline
+
+ +

Definition at line 229 of file BaseIterator.hpp.

+
230  : TypedIterator(data), m_Scale(scale), m_Offset(offset) {}
+
+
+
+ +

◆ QSymm16Decoder() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
QSymm16Decoder (const float scale,
const int32_t offset 
)
+
+inline
+
+ +

Definition at line 232 of file BaseIterator.hpp.

+
233  : QSymm16Decoder(nullptr, scale, offset) {}
QSymm16Decoder(const int16_t *data, const float scale, const int32_t offset)
+
+
+
+

Member Function Documentation

+ +

◆ DecodeTensor()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
std::vector<float> DecodeTensor (const TensorShapetensorShape,
const bool isDepthwise 
)
+
+inlineoverridevirtual
+
+ +

Implements Decoder< float >.

+ +

Definition at line 239 of file BaseIterator.hpp.

+ +

References armnn::Dequantize, TensorShape::GetNumElements(), armnn::IgnoreUnused(), and BaseIterator::operator[]().

+
241  {
242  IgnoreUnused(isDepthwise);
243 
244  const unsigned int size = tensorShape.GetNumElements();
245  std::vector<float> decodedTensor;
246  decodedTensor.reserve(size);
247 
248  for (uint32_t i = 0; i < size; ++i)
249  {
250  this->operator[](i);
251  decodedTensor.emplace_back(armnn::Dequantize(*m_Iterator, m_Scale, m_Offset));
252  }
253 
254  return decodedTensor;
255  }
+
void IgnoreUnused(Ts &&...)
+
TypedIterator & operator[](const unsigned int index) override
+ +
+
+
+ +

◆ Get()

+ +
+
+ + + + + +
+ + + + + + + +
float Get () const
+
+inlineoverridevirtual
+
+ +

Implements Decoder< float >.

+ +

Definition at line 235 of file BaseIterator.hpp.

+ +

References armnn::Dequantize.

+
236  {
237  return armnn::Dequantize(*m_Iterator, m_Scale, m_Offset);
238  }
+ +
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1