Skip to content

Commit 5a59f64

Browse files
authored
Create README.md
1 parent fe49e51 commit 5a59f64

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

test/compiler/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# deepC compiler tests
2+
3+
## Use Model
4+
5+
```onnx2exe model.onnx```
6+
7+
1. *bundleDir :* dirname("generated exe, i.e. a.out or model.exe");
8+
1. *parameter file(s) :* in bundleDir
9+
1. input file(s) :* with a path relative to current dir.
10+
1. *output file(s) :* in current dir
11+
12+
## Example
13+
14+
```onnx2cpp mnist.onnx```
15+
16+
```console
17+
> reading onnx model from file mnist.onnx
18+
> Model info:
19+
> ir_vesion : 4
20+
> doc :
21+
> INFO (ONNX): writing model parameter fc.bias to dir ..
22+
> INFO (ONNX): writing model parameter fc.weight to dir ..
23+
> INFO (ONNX): writing model parameter fc2.bias to dir ..
24+
> INFO (ONNX): writing model parameter fc2.weight to dir ..
25+
> running DNNC graph sanity check.
26+
> Writing intermediate file ./mnist.cpp
27+
> Compiling ...
28+
> INFO (ONNX): model files are ready in dir .
29+
```

0 commit comments

Comments
 (0)