From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_quantization_data_set_8hpp_source.xhtml | 135 +++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 20.02/_quantization_data_set_8hpp_source.xhtml (limited to '20.02/_quantization_data_set_8hpp_source.xhtml') diff --git a/20.02/_quantization_data_set_8hpp_source.xhtml b/20.02/_quantization_data_set_8hpp_source.xhtml new file mode 100644 index 0000000000..32021ae389 --- /dev/null +++ b/20.02/_quantization_data_set_8hpp_source.xhtml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + +ArmNN: src/armnnQuantizer/QuantizationDataSet.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
QuantizationDataSet.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <map>
9 #include "QuantizationInput.hpp"
11 #include "armnn/Tensor.hpp"
12 
13 namespace armnnQuantizer
14 {
15 
16 /// QuantizationDataSet is a structure which is created after parsing a quantization CSV file.
17 /// It contains records of filenames which contain refinement data per pass ID for binding ID.
19 {
20  using QuantizationInputs = std::vector<armnnQuantizer::QuantizationInput>;
21 public:
22 
23  using iterator = QuantizationInputs::iterator;
24  using const_iterator = QuantizationInputs::const_iterator;
25 
27  QuantizationDataSet(std::string csvFilePath);
29  bool IsEmpty() const {return m_QuantizationInputs.empty();}
30 
31  iterator begin() { return m_QuantizationInputs.begin(); }
32  iterator end() { return m_QuantizationInputs.end(); }
33  const_iterator begin() const { return m_QuantizationInputs.begin(); }
34  const_iterator end() const { return m_QuantizationInputs.end(); }
35  const_iterator cbegin() const { return m_QuantizationInputs.cbegin(); }
36  const_iterator cend() const { return m_QuantizationInputs.cend(); }
37 
38 private:
39  void ParseCsvFile();
40 
41  QuantizationInputs m_QuantizationInputs;
42  std::string m_CsvFilePath;
43 };
44 
45 /// Visitor class implementation to gather the TensorInfo for LayerBindingID for creation of ConstTensor for Refine.
46 class InputLayerVisitor : public armnn::LayerVisitorBase<armnn::VisitorNoThrowPolicy>
47 {
48 public:
49  void VisitInputLayer(const armnn::IConnectableLayer *layer, armnn::LayerBindingId id, const char* name);
51 private:
52  std::map<armnn::LayerBindingId, armnn::TensorInfo> m_TensorInfos;
53 };
54 
55 } // namespace armnnQuantizer
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:61
+ +
QuantizationDataSet is a structure which is created after parsing a quantization CSV file...
+ + +
QuantizationInputs::iterator iterator
+ + +
Visitor class implementation to gather the TensorInfo for LayerBindingID for creation of ConstTensor ...
+
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:171
+ + +
QuantizationInputs::const_iterator const_iterator
+
Visitor base class with empty implementations.
+ + + +
armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const armnn::DataLayout dataLayout, const armnn::DataType dataType)
Definition: TensorUtils.cpp:38
+ + + + +
+
+ + + + -- cgit v1.2.1