2023-10-25 13:02:23 +00:00
|
|
|
#include <cx.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main(void) {
|
2024-11-09 20:29:02 +00:00
|
|
|
// CX context (Window, neural network, threads.)
|
2024-11-07 21:07:33 +00:00
|
|
|
CX_Context *cx_ctx;
|
|
|
|
|
2024-07-06 16:04:24 +00:00
|
|
|
int retval;
|
|
|
|
|
2024-11-09 20:29:02 +00:00
|
|
|
if (cx_init(&cx_ctx)) {
|
2024-07-06 16:04:24 +00:00
|
|
|
return -1;
|
|
|
|
}
|
2023-10-25 13:02:23 +00:00
|
|
|
|
2024-11-09 20:29:02 +00:00
|
|
|
// Do magic
|
2024-11-07 21:07:33 +00:00
|
|
|
retval = cx_run(cx_ctx);
|
2024-11-09 20:29:02 +00:00
|
|
|
|
|
|
|
// Complain about failure
|
2023-12-13 09:56:21 +00:00
|
|
|
return retval;
|
2023-10-25 13:02:23 +00:00
|
|
|
}
|
2024-11-06 18:29:09 +00:00
|
|
|
|