mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 19:47:12 +00:00
Make the cuda rng seedable. (#1056)
This commit is contained in:
@ -167,6 +167,10 @@ impl crate::backend::BackendDevice for CudaDevice {
|
||||
Err(Error::NotCompiledWithCudaSupport)
|
||||
}
|
||||
|
||||
fn set_seed(&self, _: u64) -> Result<()> {
|
||||
Err(Error::NotCompiledWithCudaSupport)
|
||||
}
|
||||
|
||||
fn location(&self) -> crate::DeviceLocation {
|
||||
fail!()
|
||||
}
|
||||
|
Reference in New Issue
Block a user