mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Shuffle the shape bits around.
This commit is contained in:
12
src/dtype.rs
12
src/dtype.rs
@ -12,3 +12,15 @@ impl DType {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub trait WithDType {
|
||||
const DTYPE: DType;
|
||||
}
|
||||
|
||||
impl WithDType for f32 {
|
||||
const DTYPE: DType = DType::F32;
|
||||
}
|
||||
|
||||
impl WithDType for f64 {
|
||||
const DTYPE: DType = DType::F64;
|
||||
}
|
||||
|
Reference in New Issue
Block a user