Replies: 1 comment 2 replies
-
Hello 👋 please see the suggested solution in #2876 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having this error
error[E0425]: cannot find function
decode_borrowed_from_slice
in modulebincode::serde
--> /home/george/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/burn-core-0.15.0/src/record/memory.rs:39:37
|
39 | let state = bincode::serde::decode_borrowed_from_slice(&args, bin_config()).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in
bincode::serde
when I am running an example from the book. I ma trying to compile empty project and I am getting the same error.
This is my cargo.toml file
[dependencies]
burn = { version = "0.16.0", features = ["wgpu"] }
The main file
use burn::backend::wgpu::WgpuDevice;
use burn::tensor::Tensor;
type Backend = WgpuDevice;
fn main() {
let device = Backend::default();
let tensor_1 = Tensor::<Backend, 2>::from_data([[2., 3.], [4., 5.]], &device);
let tensor_2 = Tensor::<Backend, 2>::ones_like(&tensor_1);
}
Beta Was this translation helpful? Give feedback.
All reactions