Skip to content
Snippets Groups Projects
Commit 3fd21015 authored by Thibault Allenet's avatar Thibault Allenet
Browse files

Add an offset argument in the tensor copy function

parent 2c3257fe
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ class TensorImpl { ...@@ -21,7 +21,7 @@ class TensorImpl {
public: public:
TensorImpl() = delete; TensorImpl() = delete;
TensorImpl(const char *backend) : mBackend(backend){}; TensorImpl(const char *backend) : mBackend(backend){};
virtual void copy(const void *src, NbElts_t length) = 0; virtual void copy(const void *src, NbElts_t length, std::size_t offset = 0) = 0;
virtual void *rawPtr() = 0; virtual void *rawPtr() = 0;
virtual void setRawPtr(void* /*ptr*/) virtual void setRawPtr(void* /*ptr*/)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment