Skip to content

Commit

Permalink
Update burn to 0.11.1 (#14)
Browse files Browse the repository at this point in the history
This involves renaming the backend to the new structure
  • Loading branch information
malramsay64 authored Jan 30, 2024
1 parent 19b08b9 commit acaed68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions squeezenet-burn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ weights_file = ["burn/default"]
[dependencies]

# Note: default-features = false is needed to disable std
burn = { version = "0.10.0", default-features = false }
burn = { version = "0.11.1", default-features = false }

# Used to load weights from a file
serde = { version = "1.0.183", default-features = false, features = [
Expand All @@ -31,9 +31,9 @@ serde = { version = "1.0.183", default-features = false, features = [

[dev-dependencies]
# Used by the classify example
burn-ndarray = { version = "0.10.0", package = "burn-ndarray" }
burn = { version = "0.11.1", features = ["ndarray"] }
image = { version = "0.24.7", features = ["png", "jpeg"] }

[build-dependencies]
# Used to generate code from ONNX model
burn-import = { version = "0.10.0", package = "burn-import" }
burn-import = { version = "0.11.1", package = "burn-import" }
4 changes: 2 additions & 2 deletions squeezenet-burn/examples/classify.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use squeezenet_burn::model::{label::LABELS, normalizer::Normalizer, squeezenet1::Model};

use burn::backend::NdArray;
use burn::tensor::Tensor;
use burn_ndarray::NdArrayBackend;

use image::{self, GenericImageView, Pixel};

Expand All @@ -11,7 +11,7 @@ const WIDTH: usize = 224;
#[cfg(feature = "weights_file")]
const RECORD_FILE: &str = "squeezenet1";

type Backend = NdArrayBackend<f32>;
type Backend = NdArray<f32>;

fn main() {
// Path to the image from the main args
Expand Down

0 comments on commit acaed68

Please sign in to comment.