WIP Implement Tensor constructor and destructor

This commit is contained in:
2025-11-17 22:36:29 +01:00
parent 6744c8964f
commit d231e515b1
6 changed files with 110 additions and 102 deletions

View File

@@ -23,9 +23,6 @@ public:
Tensor(Shape shape, DType dtype, IBackend* backend);
~Tensor();
void* allocate();
void deallocate();
size_t size() const;
size_t numel() const;
@@ -38,6 +35,10 @@ public:
private:
Shape shape;
DType dtype;
size_t total_elms;
size_t total_size;
IBackend* backend;
void* d_ptr;
};