mirror of https://github.com/tracel-ai/burn.git
Change enum usage
This commit is contained in:
parent
d58770efde
commit
fa72dc9bfc
|
@ -114,7 +114,7 @@ macro_rules! bench_on_backend {
|
|||
use burn::backend::candle::CandleDevice;
|
||||
use burn::backend::Candle;
|
||||
|
||||
let device = CandleDevice::Cuda(0);
|
||||
let device = CandleDevice::cuda(0);
|
||||
bench::<Candle>(&device, feature_name, url, token);
|
||||
}
|
||||
|
||||
|
@ -123,7 +123,7 @@ macro_rules! bench_on_backend {
|
|||
use burn::backend::candle::CandleDevice;
|
||||
use burn::backend::Candle;
|
||||
|
||||
let device = CandleDevice::Metal(0);
|
||||
let device = CandleDevice::metal(0);
|
||||
bench::<Candle>(&device, feature_name, url, token);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue