2023-01-02 08:21:08 +08:00
|
|
|
[package]
|
|
|
|
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
|
2023-02-25 22:38:01 +08:00
|
|
|
categories = ["science", "no-std", "embedded", "wasm"]
|
2023-06-15 21:20:53 +08:00
|
|
|
description = "Flexible and Comprehensive Deep Learning Framework in Rust"
|
2023-02-25 22:38:01 +08:00
|
|
|
edition = "2021"
|
2023-01-02 08:21:08 +08:00
|
|
|
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
|
2023-06-15 21:20:53 +08:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-02-25 22:38:01 +08:00
|
|
|
name = "burn-core"
|
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://github.com/burn-rs/burn/tree/main/burn-core"
|
2023-09-07 00:15:13 +08:00
|
|
|
version = "0.10.0"
|
2023-01-02 08:21:08 +08:00
|
|
|
|
|
|
|
[features]
|
2023-09-06 21:16:36 +08:00
|
|
|
default = ["std", "dataset-minimal"]
|
2023-02-25 22:38:01 +08:00
|
|
|
std = [
|
|
|
|
"burn-common/std",
|
|
|
|
"burn-tensor/std",
|
|
|
|
"flate2",
|
|
|
|
"log",
|
|
|
|
"rand/std",
|
2023-04-26 00:46:50 +08:00
|
|
|
"rmp-serde",
|
2023-02-25 22:38:01 +08:00
|
|
|
"serde/std",
|
2023-03-23 23:02:46 +08:00
|
|
|
"serde_json/std",
|
|
|
|
"bincode/std",
|
|
|
|
"half/std",
|
2023-09-25 22:42:45 +08:00
|
|
|
"derive-new/std",
|
2023-02-25 22:38:01 +08:00
|
|
|
]
|
2023-09-06 21:16:36 +08:00
|
|
|
dataset = ["burn-dataset/default"]
|
|
|
|
dataset-minimal = ["burn-dataset"]
|
2023-09-01 21:28:58 +08:00
|
|
|
dataset-sqlite = ["burn-dataset/sqlite"]
|
|
|
|
dataset-sqlite-bundled = ["burn-dataset/sqlite-bundled"]
|
|
|
|
|
2023-09-06 21:16:36 +08:00
|
|
|
# Backend
|
2023-09-04 21:13:52 +08:00
|
|
|
autodiff = ["burn-autodiff"]
|
|
|
|
|
2023-09-13 22:38:16 +08:00
|
|
|
ndarray = ["__ndarray", "burn-ndarray/default"]
|
|
|
|
ndarray-no-std = ["__ndarray", "burn-ndarray"]
|
|
|
|
ndarray-blas-accelerate = ["__ndarray", "ndarray", "burn-ndarray/blas-accelerate"]
|
|
|
|
ndarray-blas-netlib = ["__ndarray", "ndarray", "burn-ndarray/blas-netlib"]
|
|
|
|
ndarray-blas-openblas = ["__ndarray", "ndarray", "burn-ndarray/blas-openblas"]
|
|
|
|
ndarray-blas-openblas-system = ["__ndarray", "ndarray", "burn-ndarray/blas-openblas-system"]
|
|
|
|
__ndarray = [] # Internal flag to know when one ndarray feature is enabled.
|
2023-09-04 21:13:52 +08:00
|
|
|
|
2023-09-29 05:09:58 +08:00
|
|
|
wgpu = ["burn-wgpu/default"]
|
2023-09-04 21:13:52 +08:00
|
|
|
|
|
|
|
tch = ["burn-tch"]
|
|
|
|
|
2023-03-23 23:02:46 +08:00
|
|
|
# Serialization formats
|
|
|
|
experimental-named-tensor = ["burn-tensor/experimental-named-tensor"]
|
2023-08-17 20:50:08 +08:00
|
|
|
|
2023-09-04 21:13:52 +08:00
|
|
|
test-tch = ["tch"] # To use tch during testing, default uses ndarray.
|
|
|
|
test-wgpu = ["wgpu"] # To use wgpu during testing, default uses ndarray.
|
2023-01-02 08:21:08 +08:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
2023-02-25 22:38:01 +08:00
|
|
|
# ** Please make sure all dependencies support no_std when std is disabled **
|
2023-01-02 08:21:08 +08:00
|
|
|
|
2023-09-07 00:15:13 +08:00
|
|
|
burn-common = { path = "../burn-common", version = "0.10.0", default-features = false }
|
|
|
|
burn-dataset = { path = "../burn-dataset", version = "0.10.0", optional = true, default-features = false }
|
|
|
|
burn-derive = { path = "../burn-derive", version = "0.10.0" }
|
|
|
|
burn-tensor = { path = "../burn-tensor", version = "0.10.0", default-features = false }
|
2023-09-06 21:16:36 +08:00
|
|
|
|
|
|
|
# Backends
|
2023-09-07 00:15:13 +08:00
|
|
|
burn-ndarray = { path = "../burn-ndarray", version = "0.10.0", optional = true, default-features = false }
|
|
|
|
burn-autodiff = { path = "../burn-autodiff", version = "0.10.0", optional = true }
|
|
|
|
burn-wgpu = { path = "../burn-wgpu", version = "0.10.0", optional = true }
|
|
|
|
burn-tch = { path = "../burn-tch", version = "0.10.0", optional = true }
|
2023-01-02 08:21:08 +08:00
|
|
|
|
2023-09-25 22:42:45 +08:00
|
|
|
derive-new = { workspace = true, default-features = false }
|
2023-08-17 20:50:08 +08:00
|
|
|
libm = { workspace = true }
|
|
|
|
log = { workspace = true, optional = true }
|
|
|
|
rand = { workspace = true, features = ["std_rng"] } # Default enables std
|
2023-02-25 22:38:01 +08:00
|
|
|
# Using in place of use std::sync::Mutex when std is disabled
|
2023-08-17 20:50:08 +08:00
|
|
|
spin = { workspace = true, features = ["mutex", "spin_mutex"] }
|
2023-02-25 22:38:01 +08:00
|
|
|
|
|
|
|
# The same implementation of HashMap in std but with no_std support (only alloc crate is needed)
|
2023-08-17 20:50:08 +08:00
|
|
|
hashbrown = { workspace = true, features = ["serde"] } # no_std compatible
|
2023-02-25 22:38:01 +08:00
|
|
|
|
|
|
|
# Serialize Deserialize
|
2023-08-17 20:50:08 +08:00
|
|
|
flate2 = { workspace = true, optional = true }
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
2023-03-23 23:02:46 +08:00
|
|
|
|
2023-08-17 20:50:08 +08:00
|
|
|
bincode = { workspace = true }
|
|
|
|
half = { workspace = true }
|
|
|
|
rmp-serde = { workspace = true, optional = true }
|
|
|
|
serde_json = { workspace = true, features = ["alloc"] } #Default enables std
|
2023-01-02 08:21:08 +08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-08-17 20:50:08 +08:00
|
|
|
tempfile = { workspace = true }
|
2023-09-07 00:15:13 +08:00
|
|
|
burn-dataset = { path = "../burn-dataset", version = "0.10.0", features = [
|
2023-02-25 22:38:01 +08:00
|
|
|
"fake",
|
2023-08-17 20:50:08 +08:00
|
|
|
] }
|
2023-02-21 21:35:24 +08:00
|
|
|
|
2023-09-07 00:15:13 +08:00
|
|
|
burn-ndarray = { path = "../burn-ndarray", version = "0.10.0", default-features = false }
|
|
|
|
burn-autodiff = { path = "../burn-autodiff", version = "0.10.0" }
|