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/_batch_normalization_layer_8hpp_source.xhtml | 133 +++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 20.02/_batch_normalization_layer_8hpp_source.xhtml (limited to '20.02/_batch_normalization_layer_8hpp_source.xhtml') diff --git a/20.02/_batch_normalization_layer_8hpp_source.xhtml b/20.02/_batch_normalization_layer_8hpp_source.xhtml new file mode 100644 index 0000000000..3ca4359d78 --- /dev/null +++ b/20.02/_batch_normalization_layer_8hpp_source.xhtml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/layers/BatchNormalizationLayer.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
BatchNormalizationLayer.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
9 namespace armnn
10 {
11 
12 class ScopedCpuTensorHandle;
13 
14 /// This layer represents a batch normalization operation.
15 class BatchNormalizationLayer : public LayerWithParameters<BatchNormalizationDescriptor>
16 {
17 public:
18  /// A unique pointer to store Mean values
19  std::unique_ptr<ScopedCpuTensorHandle> m_Mean;
20  /// A unique pointer to store Variance values
21  std::unique_ptr<ScopedCpuTensorHandle> m_Variance;
22  /// A unique pointer to store Beta values
23  std::unique_ptr<ScopedCpuTensorHandle> m_Beta;
24  /// A unique pointer to store Gamma values
25  std::unique_ptr<ScopedCpuTensorHandle> m_Gamma;
26 
27  /// Makes a workload for the BatchNormalization type.
28  /// @param [in] graph The graph where this layer can be found.
29  /// @param [in] factory The workload factory which will create the workload.
30  /// @return A pointer to the created workload, or nullptr if not created.
31  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
32 
33  /// Creates a dynamically-allocated copy of this layer.
34  /// @param [in] graph The graph into which this layer is being cloned.
35  BatchNormalizationLayer* Clone(Graph& graph) const override;
36 
37  /// Check if the input tensor shape(s)
38  /// will lead to a valid configuration of @ref BatchNormalizationLayer.
39  void ValidateTensorShapesFromInputs() override;
40 
41  void Accept(ILayerVisitor& visitor) const override;
42 
43 protected:
44  /// Constructor to create a BatchNormalizationLayer.
45  /// @param [in] param BatchNormalizationDescriptor to configure the batch normalization operation.
46  /// @param [in] name Optional name for the layer.
47  BatchNormalizationLayer(const BatchNormalizationDescriptor& param, const char* name);
48 
49  /// Default destructor
50  ~BatchNormalizationLayer() = default;
51 
52  /// Retrieve the handles to the constant values stored by the layer.
53  /// @return A vector of the constant tensors stored by this layer.
55 };
56 
57 } // namespace
+
This layer represents a batch normalization operation.
+
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the BatchNormalization type.
+
BatchNormalizationLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
+ +
std::unique_ptr< ScopedCpuTensorHandle > m_Gamma
A unique pointer to store Gamma values.
+
std::unique_ptr< ScopedCpuTensorHandle > m_Variance
A unique pointer to store Variance values.
+
Copyright (c) 2020 ARM Limited.
+
void Accept(ILayerVisitor &visitor) const override
Apply a visitor to this layer.
+
std::unique_ptr< ScopedCpuTensorHandle > m_Beta
A unique pointer to store Beta values.
+
std::unique_ptr< ScopedCpuTensorHandle > m_Mean
A unique pointer to store Mean values.
+
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of BatchNormalizationLayer.
+ +
ConstantTensors GetConstantTensorsByRef() override
Retrieve the handles to the constant values stored by the layer.
+ + +
std::vector< std::reference_wrapper< std::unique_ptr< ScopedCpuTensorHandle > >> ConstantTensors
Definition: Layer.hpp:363
+
~BatchNormalizationLayer()=default
Default destructor.
+
BatchNormalizationLayer(const BatchNormalizationDescriptor &param, const char *name)
Constructor to create a BatchNormalizationLayer.
+
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
+
+
+ + + + -- cgit v1.2.1