Fix doc example

This commit is contained in:
Guillaume Lagrange 2024-09-20 11:26:51 -04:00
parent 1d2b68ecef
commit d58770efde
1 changed files with 2 additions and 0 deletions

View File

@ -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