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-01-02 08:21:08 +08:00
|
|
|
description = "BURN: Burn Unstoppable Rusty Neurons"
|
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"]
|
|
|
|
license = "MIT/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"
|
|
|
|
|
|
|
|
version = "0.5.0"
|
2023-01-02 08:21:08 +08:00
|
|
|
|
|
|
|
[features]
|
2023-02-25 22:38:01 +08:00
|
|
|
default = ["std"]
|
2023-01-02 08:21:08 +08:00
|
|
|
experimental-named-tensor = ["burn-tensor/experimental-named-tensor"]
|
2023-02-25 22:38:01 +08:00
|
|
|
std = [
|
|
|
|
"burn-autodiff",
|
|
|
|
"burn-common/std",
|
|
|
|
"burn-dataset",
|
|
|
|
"burn-tensor/std",
|
|
|
|
"derive-new/std",
|
|
|
|
"burn-ndarray/std",
|
|
|
|
"flate2",
|
|
|
|
"log",
|
|
|
|
"rand/std",
|
|
|
|
"serde_json/std",
|
|
|
|
"serde/std",
|
|
|
|
]
|
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-02-25 22:38:01 +08:00
|
|
|
burn-autodiff = {path = "../burn-autodiff", optional = true, features = ["export_tests"]}
|
|
|
|
burn-common = {path = "../burn-common", default-features = false}
|
|
|
|
burn-dataset = {path = "../burn-dataset", default-features = false, optional = true}
|
|
|
|
burn-derive = {path = "../burn-derive"}
|
|
|
|
burn-tensor = {path = "../burn-tensor", default-features = false}
|
2023-01-02 08:21:08 +08:00
|
|
|
|
2023-02-25 22:38:01 +08:00
|
|
|
derive-new = {workspace = true}# Default enables std
|
|
|
|
libm = {workspace = true}
|
|
|
|
log = {workspace = true, optional = true}
|
|
|
|
rand = {workspace = true, features = ["std_rng"]}# Default enables std
|
|
|
|
# Using in place of use std::sync::Mutex when std is disabled
|
|
|
|
spin = {workspace = true, features = ["mutex", "spin_mutex"]}#
|
|
|
|
|
|
|
|
# The same implementation of HashMap in std but with no_std support (only alloc crate is needed)
|
|
|
|
hashbrown = {workspace = true, features = ["serde"]}# no_std compatible
|
|
|
|
|
|
|
|
# Serialize Deserialize
|
|
|
|
flate2 = {workspace = true, optional = true}
|
|
|
|
serde = {workspace = true, features = ["derive"]}
|
|
|
|
serde_json = {workspace = true, features = ["alloc"]}#Default enables std
|
2023-01-02 08:21:08 +08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-02-25 22:38:01 +08:00
|
|
|
burn-dataset = {path = "../burn-dataset", features = [
|
|
|
|
"fake",
|
|
|
|
]}
|
2023-02-21 21:35:24 +08:00
|
|
|
|
2023-02-25 22:38:01 +08:00
|
|
|
burn-ndarray = {path = "../burn-ndarray", default-features = false}
|