-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.rs
28 lines (28 loc) · 1017 Bytes
/
build.rs
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
use burn_import::onnx::ModelGen;
fn main() {
// Generate Rust code from the ONNX model file
ModelGen::new()
//.input("src/model/linear_DC_CO.onnx")
.input("../af_research/IAFGNN/model_ln/linear_DC_CO_9f.onnx")
//.input("model/mnist.onnx")
.out_dir("model/")
.run_from_script();
ModelGen::new()
//.input("src/model/linear_DC_CO.onnx")
.input("../af_research/IAFGNN/model_ln/linear_DC_ST_9f.onnx")
//.input("model/mnist.onnx")
.out_dir("model/")
.run_from_script();
ModelGen::new()
//.input("src/model/linear_DC_CO.onnx")
.input("../af_research/IAFGNN/model_ln/linear_DS_PR_9f.onnx")
//.input("model/mnist.onnx")
.out_dir("model/")
.run_from_script();
ModelGen::new()
//.input("src/model/linear_DC_CO.onnx")
.input("../af_research/IAFGNN/model_ln/linear_DS_ST_9f.onnx")
//.input("model/mnist.onnx")
.out_dir("model/")
.run_from_script();
}