mirror of https://github.com/tracel-ai/burn.git
Mnist inference web: Remove wee_alloc allocator and use rust's alloc for WASM32 (#231)
This commit is contained in:
parent
7f3f8d2b22
commit
e991ba38df
|
@ -21,7 +21,6 @@ bincode = {version = "2.0.0-rc.2", git = "https://github.com/bincode-org/bincode
|
|||
|
||||
serde = {workspace = true}
|
||||
wasm-bindgen = "0.2.84"
|
||||
wee_alloc = "0.4.5"
|
||||
|
||||
[dev-dependencies]
|
||||
burn-dataset = {path = "../../burn-dataset"}
|
||||
|
|
|
@ -9,12 +9,6 @@ use burn::tensor::Tensor;
|
|||
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use wee_alloc::WeeAlloc;
|
||||
|
||||
#[global_allocator]
|
||||
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
|
||||
|
||||
/// Mnist structure that corresponds to JavaScript class.
|
||||
/// See: https://rustwasm.github.io/wasm-bindgen/contributing/design/exporting-rust-struct.html
|
||||
#[wasm_bindgen]
|
||||
|
|
Loading…
Reference in New Issue