WIP Refactor Layer and Activation classes

This commit is contained in:
2025-11-18 19:10:18 +01:00
parent 6340b27055
commit 24606491a3
5 changed files with 74 additions and 41 deletions

View File

@@ -21,7 +21,7 @@ class Tensor
public:
Tensor() = default;
Tensor(Shape shape, DType dtype, CUDANet::Backend::IBackend* backend);
Tensor(Shape shape, DType dtype, CUDANet::Backend* backend);
~Tensor();
size_t size() const;
@@ -40,7 +40,7 @@ private:
size_t total_elms;
size_t total_size;
CUDANet::Backend::IBackend* backend;
CUDANet::Backend* backend;
void* d_ptr;
};