-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
83 lines (67 loc) · 1.81 KB
/
Copy pathCargo.toml
File metadata and controls
83 lines (67 loc) · 1.81 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[package]
name = "fastnn"
version = "0.3.0"
edition = "2021"
rust-version = "1.87"
description = "A deep learning library in Rust, with CUDA kernels for the parts that matter"
license = "MIT"
readme = "README.md"
repository = "https://github.com/CanReader/FastNN"
keywords = ["deep-learning", "neural-network", "cuda", "gpu", "machine-learning"]
categories = ["science", "mathematics"]
exclude = ["docs/", ".github/"]
[lib]
name = "fastnn"
path = "src/lib.rs"
[dependencies]
rand = "0.8" # weight init, dropout masks, shuffling
rand_distr = "0.4" # normal distribution
rayon = "1.8" # data parallelism on the CPU paths
libm = "0.2" # erff, for exact GELU
ureq = "2.9" # dataset download
flate2 = "1.0" # dataset decompression
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
[features]
default = []
# Compile cuda/kernels.cu with nvcc and link cudart/cublas/curand. Off by
# default so `cargo add fastnn` builds without the CUDA toolkit; without it,
# cuda/stubs.c supplies the symbols and everything runs on the CPU.
cuda = []
[[example]]
name = "simple_mlp"
path = "examples/simple_mlp.rs"
[[example]]
name = "mnist_mlp"
path = "examples/mnist_mlp.rs"
[[example]]
name = "mnist_cnn"
path = "examples/mnist_cnn.rs"
[[example]]
name = "char_lm"
path = "examples/char_lm.rs"
[[example]]
name = "finetune"
path = "examples/finetune.rs"
[[example]]
name = "gan"
path = "examples/gan.rs"
[[example]]
name = "vae"
path = "examples/vae.rs"
[[example]]
name = "reinforce"
path = "examples/reinforce.rs"
[[example]]
name = "multi_task"
path = "examples/multi_task.rs"
[[bench]]
name = "tensor_ops"
harness = false
path = "benches/tensor_ops.rs"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1