File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,31 @@ Edgerunner is in an early development stage. Refer to the [HACKING](/HACKING.md)
66
66
67
67
## 🕹 Usage
68
68
69
- See [ examples] ( example/README.md ) for basic usage instructions.
69
+ Edgerunner is designed around the following usage pattern;
70
+
71
+ ``` cpp
72
+ #include < edgerunner/edgerunner.hpp>
73
+ #include < edgerunner/model.hpp>
74
+
75
+ auto model = edge::createModel(" /path/to/model" );
76
+
77
+ model.applyDelegate(DELEGATE::NPU);
78
+
79
+ auto input = model.getInput(0 ).getTensorAs<float >();
80
+
81
+ /* overwrite input data */
82
+
83
+ model.execute();
84
+
85
+ auto output = model.getInput(0 ).getTensorAs<float >();
86
+
87
+ /* interpret output data */
88
+ ```
89
+
90
+ See [ examples] ( example/README.md ) for more detailed usage.
91
+
92
+ See [ model.hpp] ( /include/edgerunner/model.hpp ) and
93
+ [ tensor.hpp] ( /include/edgerunner/tensor.hpp ) for complete API.
70
94
71
95
## 🏆 Contributing
72
96
You can’t perform that action at this time.
0 commit comments