aboutsummaryrefslogtreecommitdiff
path: root/nn.h
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-10-20 11:44:30 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-10-20 11:44:30 +0200
commit9b9005101e6170a226acb265428aac429be6edbf (patch)
treef89c76f4a5c2a00a72abe9b92468ac9f15083b94 /nn.h
downloadfacedet-9b9005101e6170a226acb265428aac429be6edbf.tar.gz
facedet-9b9005101e6170a226acb265428aac429be6edbf.zip
Init
Diffstat (limited to 'nn.h')
-rw-r--r--nn.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/nn.h b/nn.h
new file mode 100644
index 0000000..65aea97
--- /dev/null
+++ b/nn.h
@@ -0,0 +1,30 @@
+#ifndef YUNET_NN_H
+#define YUNET_NN_H
+
+#include <stddef.h>
+
+void yunet_nn_conv2d(const float *x,
+ int cin,
+ int ih,
+ int iw,
+ const float *w,
+ const float *bias,
+ int cout,
+ int k,
+ int stride,
+ int pad,
+ int group,
+ int relu,
+ float *y,
+ int oh,
+ int ow);
+void yunet_nn_im2col3(const float *x, int cin, int ih, int iw, int stride, float *col, int oh, int ow);
+
+void yunet_nn_dwconv3(
+ const float *x, int c, int ih, int iw, const float *w, const float *bias, int relu, float *y);
+void yunet_nn_maxpool2(const float *x, int c, int ih, int iw, float *y);
+void yunet_nn_resize2x(const float *x, int c, int ih, int iw, float *y);
+void yunet_nn_add(const float *a, const float *b, float *y, size_t n);
+float yunet_nn_sigmoid(float v);
+
+#endif