Home
last modified time | relevance | path

Searched refs:scaled_sigmoid_x (Results 1 – 2 of 2) sorted by relevance

/external/XNNPACK/src/operators/
Dsigmoid-nc.c129 float scaled_sigmoid_x = 256.0f / (1.0f + expf(-x)); in xnn_create_sigmoid_nc_qu8() local
130 if (scaled_sigmoid_x < scaled_min) { in xnn_create_sigmoid_nc_qu8()
131 scaled_sigmoid_x = scaled_min; in xnn_create_sigmoid_nc_qu8()
133 if (scaled_sigmoid_x > scaled_max) { in xnn_create_sigmoid_nc_qu8()
134 scaled_sigmoid_x = scaled_max; in xnn_create_sigmoid_nc_qu8()
136 lookup_table[(uint32_t) i] = (uint8_t) lrintf(scaled_sigmoid_x); in xnn_create_sigmoid_nc_qu8()
/external/XNNPACK/test/
Dsigmoid-operator-tester.h151 const float scaled_sigmoid_x = sigmoid_x / output_scale(); in TestQU8() local
152 float y = scaled_sigmoid_x; in TestQU8()