From 86b53339679e12c952a24a8845a5409ac3d52de6 Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Wed, 23 Aug 2017 11:02:43 +0100 Subject: COMPMID-514 (3RDPARTY_UPDATE)(DATA_UPDATE) Add support to load .npy data * Add tensorflow_data_extractor script. * Incorporate 3rdparty npy reader libnpy. * Port AlexNet system test to validation_new. * Port LeNet5 system test to validation_new. * Update 3rdparty/ and data/ submodules. Change-Id: I156d060fe9185cd8db810b34bf524cbf5cb34f61 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/84914 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- tests/NEON/Accessor.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/NEON') diff --git a/tests/NEON/Accessor.h b/tests/NEON/Accessor.h index c379018d39..e0ff35231c 100644 --- a/tests/NEON/Accessor.h +++ b/tests/NEON/Accessor.h @@ -57,6 +57,8 @@ public: int fixed_point_position() const override; const void *operator()(const Coordinates &coord) const override; void *operator()(const Coordinates &coord) override; + const void *data() const; + void *data(); private: Tensor &_tensor; @@ -112,6 +114,16 @@ inline int Accessor::fixed_point_position() const return _tensor.info()->fixed_point_position(); } +inline const void *Accessor::data() const +{ + return _tensor.buffer(); +} + +inline void *Accessor::data() +{ + return _tensor.buffer(); +} + inline const void *Accessor::operator()(const Coordinates &coord) const { return _tensor.ptr_to_element(coord); -- cgit v1.2.1