2022-07-19 07:19:13 +08:00
|
|
|
[package]
|
2022-07-28 04:42:38 +08:00
|
|
|
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 = "Tensor library with user-friendly APIs and automatic differentiation support"
|
2023-12-12 22:39:07 +08:00
|
|
|
edition.workspace = true
|
2022-07-28 04:42:38 +08:00
|
|
|
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
|
2023-12-12 22:39:07 +08:00
|
|
|
license.workspace = true
|
2023-02-25 22:38:01 +08:00
|
|
|
name = "burn-tensor"
|
2023-12-12 22:39:07 +08:00
|
|
|
readme.workspace = true
|
2024-05-10 03:40:05 +08:00
|
|
|
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-tensor"
|
2023-12-12 22:39:07 +08:00
|
|
|
version.workspace = true
|
2022-07-19 07:19:13 +08:00
|
|
|
|
|
|
|
[features]
|
2024-04-23 23:27:54 +08:00
|
|
|
default = ["std", "repr"]
|
2024-02-02 01:47:46 +08:00
|
|
|
doc = ["default"]
|
2023-02-25 22:38:01 +08:00
|
|
|
experimental-named-tensor = []
|
|
|
|
export_tests = ["burn-tensor-testgen"]
|
2024-07-08 22:16:58 +08:00
|
|
|
std = ["rand/std", "half/std", "num-traits/std", "burn-common/std", "burn-common/rayon"]
|
2024-04-23 23:27:54 +08:00
|
|
|
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-07-08 22:16:58 +08:00
|
|
|
burn-common = { path = "../burn-common", version = "0.14.0", default-features = false}
|
2024-05-29 06:12:44 +08:00
|
|
|
burn-tensor-testgen = { path = "../burn-tensor-testgen", version = "0.14.0", optional = true }
|
2024-07-22 23:08:40 +08:00
|
|
|
cubecl = { workspace = true, optional = true }
|
2023-02-21 21:35:24 +08:00
|
|
|
|
2023-09-28 21:38:21 +08:00
|
|
|
derive-new = { workspace = true }
|
2024-06-27 08:22:19 +08:00
|
|
|
half = { workspace = true, features = ["bytemuck"] }
|
2023-09-28 21:38:21 +08:00
|
|
|
num-traits = { workspace = true }
|
|
|
|
rand = { workspace = true }
|
2024-07-02 20:25:28 +08:00
|
|
|
rand_distr = { workspace = true } # use instead of statrs because it supports no_std
|
2024-06-27 08:22:19 +08:00
|
|
|
bytemuck = { workspace = true }
|
2022-07-19 07:19:13 +08:00
|
|
|
|
2023-02-21 21:35:24 +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 }
|
2024-07-11 19:48:43 +08:00
|
|
|
serde_bytes = { workspace = true }
|
2023-02-21 21:35:24 +08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-09-28 21:38:21 +08:00
|
|
|
rand = { workspace = true, features = ["std", "std_rng"] } # Default enables std
|
2024-02-02 01:47:46 +08:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
features = ["doc"]
|