aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/ConstantLayer.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-02-11 13:24:38 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-02-14 17:53:55 +0000
commit5b2159e43a5e078053e706883e3af44ae733b5b9 (patch)
tree6486b631f32c5f903ba609907ef3aa25002e3daa /src/armnn/layers/ConstantLayer.hpp
parentec333914d5d38079083bcdb7fc88a54a19ebaa87 (diff)
downloadarmnn-5b2159e43a5e078053e706883e3af44ae733b5b9.tar.gz
IVGCVSW-2620 Support static quantization of Constant
* Added VisitConstantLayer to QuantizerVisitor * Added unit tests and refactored QuantizerTest.cpp * Code cleanup Change-Id: I118fd2be085fc98879c5cfaa09698a7c98ba13f0 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/armnn/layers/ConstantLayer.hpp')
-rw-r--r--src/armnn/layers/ConstantLayer.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/layers/ConstantLayer.hpp b/src/armnn/layers/ConstantLayer.hpp
index d045952e7e..7a6cf9d10d 100644
--- a/src/armnn/layers/ConstantLayer.hpp
+++ b/src/armnn/layers/ConstantLayer.hpp
@@ -37,11 +37,12 @@ public:
std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
/// Free up the constant source data stored by the layer.
- void ReleaseConstantData() override {};
+ void ReleaseConstantData() override {}
void Accept(ILayerVisitor& visitor) const override;
std::unique_ptr<ScopedCpuTensorHandle> m_LayerOutput;
+
protected:
/// Constructor to create a ConstantLayer.
/// @param [in] name Optional name for the layer.
@@ -52,7 +53,6 @@ protected:
/// Retrieve the handles to the constant values stored by the layer.
ConstantTensors GetConstantTensorsByRef() override { return {m_LayerOutput}; }
-
};
} // namespace