mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 03:54:56 +00:00
Implement randn (CPU-> device)
This commit is contained in:
@ -201,10 +201,9 @@ impl Device {
|
|||||||
Ok(Storage::Cuda(storage))
|
Ok(Storage::Cuda(storage))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Device::Metal(_device) => {
|
Device::Metal(device) => {
|
||||||
// let storage = device.rand_uniform(shape, dtype, lo, up)?;
|
let storage = device.rand_uniform(shape, dtype, lo, up)?;
|
||||||
// Ok(Storage::Metal(storage))
|
Ok(Storage::Metal(storage))
|
||||||
crate::bail!("Metal rand_uniform not implemented")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user