Skip to content

Commit 9358cd6

Browse files
committed
fix: add examples
1 parent 0f88fad commit 9358cd6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/dummy_example.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "MLNanoShaperRunner.h"
2+
#include "julia_init.h"
3+
4+
int main(int argc,char *argv[]) {
5+
init_julia(argc, argv);
6+
return 0;
7+
load_model("/home/tristan/datasets/models/"
8+
"angular_dense_2Apf_epoch_10_16451353003083222301");
9+
sphere data[2]= {{0.,0.,0.,1.},{1.,0.,0.,1.}};
10+
load_atoms(data,2);
11+
point x[2] = {{0.,0.,1.},{1.,0.,0.}};
12+
eval_model(x,2);
13+
shutdown_julia(0);
14+
15+
return 0;
16+
}

0 commit comments

Comments
 (0)