diff --git a/include/aidge/backend/TensorImpl.hpp b/include/aidge/backend/TensorImpl.hpp index 34fcd6a33763603e2db80fe2a4431c42ec2bb530..2345fb0d9a09cf3910393dd9d23ce1d2b90db489 100644 --- a/include/aidge/backend/TensorImpl.hpp +++ b/include/aidge/backend/TensorImpl.hpp @@ -44,7 +44,7 @@ public: /** * Copy data from the same device. * @param src Pointer on current implementation device. - * @param length Number of bytes to copy. + * @param length Number of elements to copy. */ virtual void copy(const void *src, NbElts_t length) = 0; @@ -52,7 +52,7 @@ public: * Copy-convert data from the same device. * @param srcDt Source data type. * @param src Pointer on current implementation device. - * @param length Number of bytes to copy. + * @param length Number of elements to copy. */ virtual void copyCast(const void *src, NbElts_t length, const DataType srcDt) = 0; @@ -60,21 +60,21 @@ public: * Copy data from an other device on the same backend. * @param device (backend, device) pair to copy from. The backend must match current implementation backend. * @param src Pointer on current implementation backend. - * @param length Number of bytes to copy. + * @param length Number of elements to copy. */ virtual void copyFromDevice(const void *src, NbElts_t length, const std::pair<std::string, int>& device) = 0; /** * Copy data from host. * @param src Host pointer to copy from. - * @param length Number of bytes to copy. + * @param length Number of elements to copy. */ virtual void copyFromHost(const void *src, NbElts_t length) = 0; /** * Copy data to host. * @param src Host pointer to copy to. - * @param length Number of bytes to copy. + * @param length Number of elements to copy. */ virtual void copyToHost(void *dst, NbElts_t length) const = 0;