aboutsummaryrefslogtreecommitdiff
path: root/nn.h
blob: d555d41a040fadfdcf5ed30f3283872c197dcc1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef FACEDET_NN_H
#define FACEDET_NN_H

#include <stddef.h>

void facedet_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 facedet_nn_im2col3(const float *x, int cin, int ih, int iw, int stride, float *col, int oh, int ow);

void facedet_nn_dwconv3(
    const float *x, int c, int ih, int iw, const float *w, const float *bias, int relu, float *y);
void facedet_nn_maxpool2(const float *x, int c, int ih, int iw, float *y);
void facedet_nn_resize2x(const float *x, int c, int ih, int iw, float *y);
void facedet_nn_add(const float *a, const float *b, float *y, size_t n);
float facedet_nn_sigmoid(float v);

#endif