MCPcopy Create free account
hub / github.com/OAID/Tengine / activation

Function activation

executor/operator/ref/kernel/deconvolution/ref_deconv_kernel.h:53–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53static 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
68typedef int (*ref_deconv_kernel_t)(const void* input, void* output, const void* kernel, const void* bias,
69 const deconv_ref_param* param);

Callers 3

ref_deconv_uint8Function · 0.70
ref_deconv_int8Function · 0.70
ref_deconv_fp32Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected