mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-12-22 14:24:22 +00:00
Add default dtype to backend
This commit is contained in:
@@ -66,6 +66,12 @@ struct Shape {
|
||||
__host__ bool operator!=(const Shape& other) const {
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
__host__ __device__ bool empty() const {
|
||||
return ndim == 0;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
std::string format_shape(const Shape& shape) {
|
||||
|
||||
Reference in New Issue
Block a user