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/_i_network_quantizer_8hpp_source.xhtml | 134 +++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 20.02/_i_network_quantizer_8hpp_source.xhtml (limited to '20.02/_i_network_quantizer_8hpp_source.xhtml') diff --git a/20.02/_i_network_quantizer_8hpp_source.xhtml b/20.02/_i_network_quantizer_8hpp_source.xhtml new file mode 100644 index 0000000000..630de9bdd3 --- /dev/null +++ b/20.02/_i_network_quantizer_8hpp_source.xhtml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + +ArmNN: include/armnnQuantizer/INetworkQuantizer.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
INetworkQuantizer.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 <armnn/INetwork.hpp>
9 #include <armnn/Types.hpp>
10 #include <armnn/Tensor.hpp>
11 
12 namespace armnn
13 {
14 
16 {
18 
19  QuantizerOptions(DataType activationFormat) : QuantizerOptions(activationFormat, false) {}
20 
21  QuantizerOptions(DataType activationFormat, bool preserveType)
22  : m_ActivationFormat(activationFormat)
23  , m_PreserveType(preserveType) {}
24 
27 };
28 
29 using INetworkQuantizerPtr = std::unique_ptr<class INetworkQuantizer, void(*)(INetworkQuantizer* quantizer)>;
30 
31 /// Quantizer class Quantizes a float32 InputNetwork
33 {
34 public:
35  /// Create Quantizer object and return raw pointer
36  static INetworkQuantizer* CreateRaw(INetwork* inputNetwork, const QuantizerOptions& options = QuantizerOptions());
37 
38  /// Create Quantizer object wrapped in unique_ptr
39  static INetworkQuantizerPtr Create(INetwork* inputNetwork, const QuantizerOptions& options = QuantizerOptions());
40 
41  /// Destroy Quantizer object
42  static void Destroy(INetworkQuantizer* quantizer);
43 
44  /// Overrides the default quantization values for the input layer with the given id
45  virtual void OverrideInputRange(LayerBindingId layerId, float min, float max) = 0;
46 
47  /// Refine input network with a set of refinement data for specified LayerBindingId
48  virtual void Refine(const InputTensors& inputTensors) = 0;
49 
50  /// Extract final quantized network
51  virtual INetworkPtr ExportNetwork() = 0;
52 
53 protected:
54  virtual ~INetworkQuantizer() {}
55 };
56 
57 } //namespace armnn
+ + +
std::unique_ptr< class INetworkQuantizer, void(*)(INetworkQuantizer *quantizer)> INetworkQuantizerPtr
+
Main network class which provides the interface for building up a neural network. ...
Definition: INetwork.hpp:105
+
std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors
Definition: Tensor.hpp:225
+
QuantizerOptions(DataType activationFormat)
+ +
Copyright (c) 2020 ARM Limited.
+
DataLayout::NHWC false
+
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:171
+
QuantizerOptions(DataType activationFormat, bool preserveType)
+
DataType
Definition: Types.hpp:32
+ + + + + +
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
Definition: INetwork.hpp:101
+
Quantizer class Quantizes a float32 InputNetwork.
+
armnn::Runtime::CreationOptions::ExternalProfilingOptions options
+
+
+ + + + -- cgit v1.2.1