mirror of https://github.com/tracel-ai/burn.git
Fix doc example
This commit is contained in:
parent
1d2b68ecef
commit
d58770efde
|
@ -32,6 +32,8 @@ where
|
|||
///
|
||||
/// To create a Cuda or Metal device from the index, use the associated methods to create the variant:
|
||||
/// ```no_run
|
||||
/// use burn_candle::CandleDevice;
|
||||
///
|
||||
/// // Create a Cuda device from its index
|
||||
/// let device = CandleDevice::cuda(0);
|
||||
/// // Create a Metal device from its index
|
||||
|
|
Loading…
Reference in New Issue