From cb0630959aeae05bc2ae9f6d80cf5f5983a8fb77 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 23 Nov 2022 11:05:29 +0000 Subject: IVGCVSW-7075 Update Doxygen for 22.11 Release Signed-off-by: Nikhil Raj Change-Id: Ib5669e8fd3739d1b10f5dd694d020d51799896dc --- 22.11/classarmnn_1_1_float16_decoder.xhtml | 316 +++++++++++++++++++++++++++++ 1 file changed, 316 insertions(+) create mode 100644 22.11/classarmnn_1_1_float16_decoder.xhtml (limited to '22.11/classarmnn_1_1_float16_decoder.xhtml') diff --git a/22.11/classarmnn_1_1_float16_decoder.xhtml b/22.11/classarmnn_1_1_float16_decoder.xhtml new file mode 100644 index 0000000000..e7fab8e1b0 --- /dev/null +++ b/22.11/classarmnn_1_1_float16_decoder.xhtml @@ -0,0 +1,316 @@ + + + + + + + + + + + + + +ArmNN: Float16Decoder Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Float16Decoder Class Reference
+
+
+ +

#include <BaseIterator.hpp>

+
+Inheritance diagram for Float16Decoder:
+
+
+ + +TypedIterator< const Half, Decoder< float > > +Decoder< float > +BaseIterator + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Float16Decoder (const Half *data)
 
 Float16Decoder ()
 
float Get () const override
 
std::vector< float > DecodeTensor (const TensorShape &tensorShape, const bool isDepthwise) override
 
- Public Member Functions inherited from TypedIterator< const Half, Decoder< float > >
 TypedIterator (const Half *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 Half, Decoder< float > >
const Halfm_Iterator
 
const Halfm_Start
 
+

Detailed Description

+
+

Definition at line 301 of file BaseIterator.hpp.

+

Constructor & Destructor Documentation

+ +

◆ Float16Decoder() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
Float16Decoder (const Halfdata)
+
+inline
+
+ +

Definition at line 304 of file BaseIterator.hpp.

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

◆ Float16Decoder() [2/2]

+ +
+
+ + + + + +
+ + + + + + + +
Float16Decoder ()
+
+inline
+
+ +

Definition at line 307 of file BaseIterator.hpp.

+
308  : Float16Decoder(nullptr) {}
+
+
+
+

Member Function Documentation

+ +

◆ DecodeTensor()

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

Implements Decoder< float >.

+ +

Definition at line 316 of file BaseIterator.hpp.

+ +

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

+
318  {
319  IgnoreUnused(isDepthwise);
320 
321  const unsigned int size = tensorShape.GetNumElements();
322  std::vector<float> decodedTensor;
323  decodedTensor.reserve(size);
324 
325  for (uint32_t i = 0; i < size; ++i)
326  {
327  float val = 0.f;
328  this->operator[](i);
330  decodedTensor.emplace_back(val);
331  }
332 
333  return decodedTensor;
334  }
+
void IgnoreUnused(Ts &&...)
+
TypedIterator & operator[](const unsigned int index) override
+
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+
+
+
+ +

◆ Get()

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

Implements Decoder< float >.

+ +

Definition at line 310 of file BaseIterator.hpp.

+ +

References FloatingPointConverter::ConvertFloat16To32().

+
311  {
312  float val = 0.f;
314  return val;
315  }
+
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1