diff options
author | SiCong Li <sicong.li@arm.com> | 2017-08-23 11:02:43 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 86b53339679e12c952a24a8845a5409ac3d52de6 (patch) | |
tree | 807c897ca1001f22b1906d285488877a287b482b /tests/NEON/Accessor.h | |
parent | 70e9bc21682f4eaedaceb632f594f588cb2c91fc (diff) | |
download | ComputeLibrary-86b53339679e12c952a24a8845a5409ac3d52de6.tar.gz |
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 <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/NEON/Accessor.h')
-rw-r--r-- | tests/NEON/Accessor.h | 12 |
1 files changed, 12 insertions, 0 deletions
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); |