diff options
Diffstat (limited to 'tests/NEON')
-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); |