Skip to content

Commit

Permalink
Bump cube version (#2447)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBrussee authored Oct 31, 2024
1 parent 8e466d7 commit 9eb2578
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
25 changes: 13 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ ahash = { version = "0.8.11", default-features = false }
portable-atomic-util = { version = "0.2.2", features = ["alloc"] }

### For the main burn branch. ###
cubecl = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "99404b1e29946832a42b72a5c26d4cf42c67692e" }
cubecl-common = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "99404b1e29946832a42b72a5c26d4cf42c67692e" }
cubecl = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "0dff475fec254e884f6b82e305e7a52adebf1dd7" }
cubecl-common = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "0dff475fec254e884f6b82e305e7a52adebf1dd7" }
### For local development. ###
# cubecl = { path = "../cubecl/crates/cubecl", default-features = false }
# cubecl-common = { path = "../cubecl/crates/cubecl-common", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions examples/image-classification-web/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use core::convert::Into;
use crate::model::{label::LABELS, normalizer::Normalizer, squeezenet::Model as SqueezenetModel};

use burn::{
backend::{wgpu::init_device, NdArray},
backend::{wgpu::init_setup_async, NdArray},
prelude::*,
tensor::activation::softmax,
};
Expand Down Expand Up @@ -110,7 +110,7 @@ impl ImageClassifier {
log::info!("Loading the model to the Wgpu backend");
let start = Instant::now();
let device = WgpuDevice::default();
init_device::<AutoGraphicsApi>(&device, Default::default()).await;
init_setup_async::<AutoGraphicsApi>(&device, Default::default()).await;
self.model = ModelType::WithWgpuBackend(Model::new(&device));
let duration = start.elapsed();
log::debug!("Model is loaded to the Wgpu backend in {:?}", duration);
Expand Down

0 comments on commit 9eb2578

Please sign in to comment.