-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
61 lines (53 loc) · 1.29 KB
/
Copy pathCargo.toml
File metadata and controls
61 lines (53 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
name = "petite-ad"
version = "0.2.1"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "A lightweight automatic differentiation library for learning and educational purposes"
homepage = "https://github.com/leafyoung"
repository = "https://github.com/leafyoung/petite-ad"
readme = "README.md"
keywords = [
"autodiff",
"differentiation",
"gradient",
"backpropagation",
"machine-learning",
]
categories = ["algorithms", "mathematics", "science"]
[features]
default = []
serde = ["dep:serde"]
backend-wgpu = ["dep:pollster", "dep:wgpu"]
[dependencies]
serde = { version = "1.0", features = ["derive"], optional = true }
pollster = { version = "0.4", optional = true }
wgpu = { version = "25", optional = true }
[dev-dependencies]
criterion = { version = "0.8.1", default-features = false }
serde_json = "1.0"
[profile.release]
# Optimize for speed and binary size
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
panic = "abort"
[profile.dev]
# Faster debug builds
codegen-units = 16
lto = false
opt-level = 0
incremental = true
[profile.test]
# Fast test builds with some optimizations
codegen-units = 16
opt-level = 1
lto = false
[profile.bench]
# Maximum performance for benchmarks
inherits = "release"
debug = true
[[bench]]
name = "compute_benchmark"
harness = false