From 3fd21015f9fb3d09cf2ba51a0455e74155572721 Mon Sep 17 00:00:00 2001 From: thibault allenet <thibault.allenet@cea.fr> Date: Tue, 29 Aug 2023 14:37:08 +0000 Subject: [PATCH] Add an offset argument in the tensor copy function --- include/aidge/backend/TensorImpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/aidge/backend/TensorImpl.hpp b/include/aidge/backend/TensorImpl.hpp index 58f2d547e..66e388f53 100644 --- a/include/aidge/backend/TensorImpl.hpp +++ b/include/aidge/backend/TensorImpl.hpp @@ -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*/) { -- GitLab