mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +00:00
Complexifying our hello world
This commit is contained in:
@ -41,6 +41,12 @@ impl From<usize> for Shape {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<(usize,)> for Shape {
|
||||
fn from(d1: (usize,)) -> Self {
|
||||
Self(vec![d1.0])
|
||||
}
|
||||
}
|
||||
|
||||
impl From<(usize, usize)> for Shape {
|
||||
fn from(d12: (usize, usize)) -> Self {
|
||||
Self(vec![d12.0, d12.1])
|
||||
|
Reference in New Issue
Block a user