-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (53 loc) · 1.61 KB
/
Cargo.toml
File metadata and controls
64 lines (53 loc) · 1.61 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
[package]
name = "tranz"
version = "0.5.1"
edition = "2021"
rust-version = "1.87"
license = "MIT OR Apache-2.0"
authors = ["Arc <attobop@gmail.com>"]
repository = "https://github.com/arclabs561/tranz"
description = "Point-embedding knowledge graph models: TransE, RotatE, ComplEx, DistMult. GPU training via candle."
keywords = ["knowledge-graph", "embeddings", "link-prediction"]
categories = ["science", "algorithms"]
readme = "README.md"
publish = true
[package.metadata.docs.rs]
features = ["candle"]
[workspace]
[dependencies]
candle-core = { version = "0.9", optional = true }
candle-nn = { version = "0.9", optional = true }
rand = { version = "0.9", optional = true }
lattix = { version = "0.6", default-features = false, features = ["kge"] }
rayon = "1"
thiserror = "2"
burn = { version = "0.20", features = ["autodiff"], optional = true }
burn-ndarray = { version = "0.20", features = ["rayon"], optional = true }
burn-wgpu = { version = "0.20", optional = true }
[features]
default = ["rand"]
candle = ["dep:candle-core", "dep:candle-nn", "rand"]
cuda = ["candle", "candle-core/cuda"]
burn-cpu = ["dep:burn", "dep:burn-ndarray", "rand"]
burn-gpu = ["dep:burn", "dep:burn-wgpu", "rand"]
[[bin]]
name = "tranz"
path = "src/bin/tranz.rs"
required-features = ["candle"]
[[example]]
name = "train_wn18rr"
required-features = ["candle"]
[[example]]
name = "bench_training"
required-features = ["candle"]
[[example]]
name = "bench_burn"
required-features = ["candle", "burn-cpu"]
[[example]]
name = "bench_wgpu"
required-features = ["burn-gpu"]
[dev-dependencies]
proptest = "1.5"
tempfile = "3"
[lints.rust]
missing_docs = "warn"