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
2 merge requests!105version 0.2.0,!4Dataloader
Pipeline #30953 canceled
......@@ -21,7 +21,7 @@ class TensorImpl {
public:
TensorImpl() = delete;
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 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