diff --git a/candle-core/src/device.rs b/candle-core/src/device.rs index 3eb7f8b7..1e33021b 100644 --- a/candle-core/src/device.rs +++ b/candle-core/src/device.rs @@ -201,10 +201,9 @@ impl Device { Ok(Storage::Cuda(storage)) } } - Device::Metal(_device) => { - // let storage = device.rand_uniform(shape, dtype, lo, up)?; - // Ok(Storage::Metal(storage)) - crate::bail!("Metal rand_uniform not implemented") + Device::Metal(device) => { + let storage = device.rand_uniform(shape, dtype, lo, up)?; + Ok(Storage::Metal(storage)) } } }