mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-12-24 07:14:22 +00:00
Add default dtype to backend
This commit is contained in:
@@ -16,11 +16,14 @@ enum class DType
|
||||
// INT32, // Not implemented yet
|
||||
};
|
||||
|
||||
size_t dtype_size(DType dtype);
|
||||
|
||||
class Tensor
|
||||
{
|
||||
public:
|
||||
|
||||
Tensor() = default;
|
||||
Tensor(Shape shape, CUDANet::Backend* backend);
|
||||
Tensor(Shape shape, DType dtype, CUDANet::Backend* backend);
|
||||
|
||||
Tensor(Tensor&& other) noexcept;
|
||||
@@ -30,6 +33,8 @@ public:
|
||||
|
||||
~Tensor();
|
||||
|
||||
DType get_dtype();
|
||||
|
||||
size_t size() const;
|
||||
size_t numel() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user