burn/crates/burn-tensor/Cargo.toml

56 lines
1.8 KiB
TOML
Raw Normal View History

2022-07-19 07:19:13 +08:00
[package]
2022-07-28 04:42:38 +08:00
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science", "no-std", "embedded", "wasm"]
description = "Tensor library with user-friendly APIs and automatic differentiation support"
edition.workspace = true
2022-07-28 04:42:38 +08:00
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
license.workspace = true
name = "burn-tensor"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-tensor"
version.workspace = true
2022-07-19 07:19:13 +08:00
[features]
default = ["std", "repr"]
doc = ["default"]
experimental-named-tensor = []
export_tests = ["burn-tensor-testgen"]
std = [
"rand/std",
"half/std",
"num-traits/std",
"burn-common/std",
"burn-common/rayon",
"colored",
]
repr = []
2024-07-22 23:08:40 +08:00
cubecl = ["dep:cubecl"]
cubecl-wgpu = ["cubecl", "cubecl/wgpu"]
cubecl-cuda = ["cubecl", "cubecl/cuda"]
2022-07-19 07:19:13 +08:00
[dependencies]
2024-08-28 02:12:54 +08:00
burn-common = { path = "../burn-common", version = "0.15.0", default-features = false }
burn-tensor-testgen = { path = "../burn-tensor-testgen", version = "0.15.0", optional = true }
2024-07-22 23:08:40 +08:00
cubecl = { workspace = true, optional = true }
2023-09-28 21:38:21 +08:00
derive-new = { workspace = true }
half = { workspace = true, features = ["bytemuck"] }
2023-09-28 21:38:21 +08:00
num-traits = { workspace = true }
rand = { workspace = true }
rand_distr = { workspace = true } # use instead of statrs because it supports no_std
bytemuck = { workspace = true }
colored = { workspace = true, optional = true }
2022-07-19 07:19:13 +08:00
# The same implementation of HashMap in std but with no_std support (only needs alloc crate)
2023-09-28 21:38:21 +08:00
hashbrown = { workspace = true } # no_std compatible
2022-07-19 07:19:13 +08:00
2022-08-06 09:14:44 +08:00
# Serialization
2023-09-28 21:38:21 +08:00
serde = { workspace = true }
serde_bytes = { workspace = true }
[dev-dependencies]
2023-09-28 21:38:21 +08:00
rand = { workspace = true, features = ["std", "std_rng"] } # Default enables std
[package.metadata.docs.rs]
features = ["doc"]