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

Function vexpq10_f32

executor/operator/arm32/tanh_float.cpp:75–89  ·  view source on GitHub ↗

exp(x) = lim(1+x/n)^n // n=10 */

Source from the content-addressed store, hash-verified

73exp(x) = lim(1+x/n)^n // n=10
74*/
75inline float32x4_t vexpq10_f32(float32x4_t x)
76{
77 x = vmlaq_n_f32(vdupq_n_f32(1.0f), x, 0.0009765625f); // n = 10
78 x = vmulq_f32(x, x);
79 x = vmulq_f32(x, x);
80 x = vmulq_f32(x, x);
81 x = vmulq_f32(x, x);
82 x = vmulq_f32(x, x);
83 x = vmulq_f32(x, x);
84 x = vmulq_f32(x, x);
85 x = vmulq_f32(x, x);
86 x = vmulq_f32(x, x);
87 x = vmulq_f32(x, x);
88 return x;
89}
90
91void tanh_kernel(int i, int id, void* data, const float* input, float* output)
92{

Callers 1

tanh_kernelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected