From cd4e9abf7a165f15ccd10ac4541365d4f8a6db19 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Tue, 5 Nov 2019 17:50:27 +0000 Subject: COMPMID-2452: Add mnist example * Add small-mnist example * Add PrintAccessor * Add DequantizationLayer graph node Change-Id: I7bc8011e5a602f40fa3c47b231a2a69c804e78c2 Signed-off-by: Isabella Gottardi Reviewed-on: https://review.mlplatform.org/c/2274 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Giorgio Arena Reviewed-by: Georgios Pinitas --- arm_compute/graph/frontend/Layers.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'arm_compute/graph/frontend/Layers.h') diff --git a/arm_compute/graph/frontend/Layers.h b/arm_compute/graph/frontend/Layers.h index 120997a8b4..61cd83c107 100644 --- a/arm_compute/graph/frontend/Layers.h +++ b/arm_compute/graph/frontend/Layers.h @@ -489,6 +489,25 @@ private: const QuantizationInfo _weights_quant_info; const QuantizationInfo _out_quant_info; }; +/** Dequantization Layer */ +class DequantizationLayer final : public ILayer +{ +public: + /** Construct a dequantization layer. + * + */ + DequantizationLayer() + { + } + + NodeID create_layer(IStream &s) override + { + NodeParams common_params = { name(), s.hints().target_hint }; + NodeIdxPair input = { s.tail_node(), 0 }; + return GraphBuilder::add_dequantization_node(s.graph(), common_params, input); + } +}; + /** DetectionOutput Layer */ class DetectionOutputLayer final : public ILayer { @@ -555,7 +574,7 @@ private: class DummyLayer final : public ILayer { public: - /** Construct an input layer. + /** Construct a dummy layer. * * @param[in] shape Output shape */ -- cgit v1.2.1