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_float16_decoder.xhtml | 316 +++++++++++++++++++++++++++++ 1 file changed, 316 insertions(+) create mode 100644 22.02/classarmnn_1_1_float16_decoder.xhtml (limited to '22.02/classarmnn_1_1_float16_decoder.xhtml') diff --git a/22.02/classarmnn_1_1_float16_decoder.xhtml b/22.02/classarmnn_1_1_float16_decoder.xhtml new file mode 100644 index 0000000000..ae8b8eabef --- /dev/null +++ b/22.02/classarmnn_1_1_float16_decoder.xhtml @@ -0,0 +1,316 @@ + + + + + + + + + + + + + +ArmNN: Float16Decoder Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
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