aboutsummaryrefslogtreecommitdiff
path: root/tests/CL
diff options
context:
space:
mode:
authorSiCong Li <sicong.li@arm.com>2017-08-23 11:02:43 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit86b53339679e12c952a24a8845a5409ac3d52de6 (patch)
tree807c897ca1001f22b1906d285488877a287b482b /tests/CL
parent70e9bc21682f4eaedaceb632f594f588cb2c91fc (diff)
downloadComputeLibrary-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/CL')
-rw-r--r--tests/CL/CLAccessor.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/CL/CLAccessor.h b/tests/CL/CLAccessor.h
index b1d7a078b1..2f955653c8 100644
--- a/tests/CL/CLAccessor.h
+++ b/tests/CL/CLAccessor.h
@@ -63,6 +63,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:
CLTensor &_tensor;
@@ -124,6 +126,16 @@ inline int CLAccessor::fixed_point_position() const
return _tensor.info()->fixed_point_position();
}
+inline const void *CLAccessor::data() const
+{
+ return _tensor.buffer();
+}
+
+inline void *CLAccessor::data()
+{
+ return _tensor.buffer();
+}
+
inline const void *CLAccessor::operator()(const Coordinates &coord) const
{
return _tensor.ptr_to_element(coord);