Skip to content

Commit

Permalink
Fixed typo in the accompanying example as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmy314 committed Jan 22, 2025
1 parent 280b6bc commit 66c0163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/raspberry-pi-pico/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use embassy_rp as _;
use embedded_alloc::Heap;

type Backend = NdArray<f32>;
type BackendDeice = <Backend as burn::tensor::backend::Backend>::Device;
type BackendDevice = <Backend as burn::tensor::backend::Backend>::Device;

#[global_allocator]
static HEAP: Heap = Heap::empty();
Expand All @@ -25,7 +25,7 @@ async fn main(_spawner: Spawner) {
}

// Get a default device for the backend
let device = BackendDeice::default();
let device = BackendDevice::default();

// Create a new model and load the state
let model: Model<Backend> = Model::default();
Expand All @@ -47,7 +47,7 @@ async fn main(_spawner: Spawner) {
}
}

fn run_model<'a>(model: &Model<NdArray>, device: &BackendDeice, input: f32) -> Tensor<Backend, 2> {
fn run_model<'a>(model: &Model<NdArray>, device: &BackendDevice, input: f32) -> Tensor<Backend, 2> {
// Define the tensor
let input = Tensor::<Backend, 2>::from_floats([[input]], &device);

Expand Down

0 comments on commit 66c0163

Please sign in to comment.