| 51 | }; |
| 52 | |
| 53 | static inline float activation(float input, int activation) |
| 54 | { |
| 55 | if(activation >= 0) |
| 56 | { |
| 57 | if(input < 0) |
| 58 | input = 0; |
| 59 | if(activation == 1 && input > 1) |
| 60 | input = 1; |
| 61 | if(activation == 2 && input > 6) |
| 62 | input = 6; |
| 63 | } |
| 64 | |
| 65 | return input; |
| 66 | } |
| 67 | |
| 68 | typedef int (*ref_deconv_kernel_t)(const void* input, void* output, const void* kernel, const void* bias, |
| 69 | const deconv_ref_param* param); |
no outgoing calls
no test coverage detected