From add078b7f9a658d52ee6e8fe6771ea0517c07674 Mon Sep 17 00:00:00 2001 From: mathad01 Date: Mon, 10 May 2021 16:51:20 +0100 Subject: IVGCVSW-5908 Update 21.05 Doxygen Documents Signed-off-by: mathad01 Change-Id: I95316d4fc5f9d10185492dc835bb2411c1daea7b --- 21.05/classarmnn_1_1_int32_decoder.xhtml | 319 +++++++++++++++++++++++++++++++ 1 file changed, 319 insertions(+) create mode 100644 21.05/classarmnn_1_1_int32_decoder.xhtml (limited to '21.05/classarmnn_1_1_int32_decoder.xhtml') diff --git a/21.05/classarmnn_1_1_int32_decoder.xhtml b/21.05/classarmnn_1_1_int32_decoder.xhtml new file mode 100644 index 0000000000..5ecec5b2eb --- /dev/null +++ b/21.05/classarmnn_1_1_int32_decoder.xhtml @@ -0,0 +1,319 @@ + + + + + + + + + + + + + +ArmNN: Int32Decoder Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Int32Decoder Class Reference
+
+
+ +

#include <BaseIterator.hpp>

+
+Inheritance diagram for Int32Decoder:
+
+
+ + +TypedIterator< const int32_t, Decoder< float > > +Decoder< float > +BaseIterator + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Int32Decoder (const int32_t *data)
 
 Int32Decoder ()
 
float Get () const override
 
std::vector< float > DecodeTensor (const TensorShape &tensorShape, const unsigned int channelMultiplier, const bool isDepthwise) override
 
- Public Member Functions inherited from TypedIterator< const int32_t, Decoder< float > >
 TypedIterator (const int32_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
 
TypedIteratorSetIndex (unsigned int index, unsigned int axisIndex=0) 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 int32_t, Decoder< float > >
const int32_t * m_Iterator
 
const int32_t * m_Start
 
+

Detailed Description

+
+

Definition at line 419 of file BaseIterator.hpp.

+

Constructor & Destructor Documentation

+ +

◆ Int32Decoder() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
Int32Decoder (const int32_t * data)
+
+inline
+
+ +

Definition at line 422 of file BaseIterator.hpp.

+
423  : TypedIterator(data) {}
+
+
+
+ +

◆ Int32Decoder() [2/2]

+ +
+
+ + + + + +
+ + + + + + + +
Int32Decoder ()
+
+inline
+
+ +

Definition at line 425 of file BaseIterator.hpp.

+
426  : Int32Decoder(nullptr) {}
+
+
+
+

Member Function Documentation

+ +

◆ DecodeTensor()

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

Implements Decoder< float >.

+ +

Definition at line 432 of file BaseIterator.hpp.

+ +

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

+
435  {
436  IgnoreUnused(channelMultiplier, isDepthwise);
437 
438  const unsigned int size = tensorShape.GetNumElements();
439  std::vector<float> decodedTensor;
440  decodedTensor.reserve(size);
441 
442  for (uint32_t i = 0; i < size; ++i)
443  {
444  this->operator[](i);
445  decodedTensor.emplace_back(static_cast<float>(*m_Iterator));
446  }
447 
448  return decodedTensor;
449  }
+
void IgnoreUnused(Ts &&...)
+
TypedIterator & operator[](const unsigned int index) override
+
+
+
+ +

◆ Get()

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

Implements Decoder< float >.

+ +

Definition at line 428 of file BaseIterator.hpp.

+
429  {
430  return static_cast<float>(*m_Iterator);
431  }
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1