Home
last modified time | relevance | path

Searched refs:negative_scale (Results 1 – 6 of 6) sorted by relevance

/external/XNNPACK/test/
Dqs8-vlrelu.cc67 TEST(QS8_VLRELU__NEON_X8, negative_scale) { in TEST() argument
70 …for (float negative_scale : std::vector<float>({-127.99609375f, -1.3f, -0.3f, -1.0f / 256.0f, 1 / … in TEST() local
73 .negative_scale(negative_scale) in TEST()
152 TEST(QS8_VLRELU__NEON_X16, negative_scale) { in TEST() argument
155 …for (float negative_scale : std::vector<float>({-127.99609375f, -1.3f, -0.3f, -1.0f / 256.0f, 1 / … in TEST() local
158 .negative_scale(negative_scale) in TEST()
237 TEST(QS8_VLRELU__NEON_X32, negative_scale) { in TEST() argument
240 …for (float negative_scale : std::vector<float>({-127.99609375f, -1.3f, -0.3f, -1.0f / 256.0f, 1 / … in TEST() local
243 .negative_scale(negative_scale) in TEST()
322 TEST(QS8_VLRELU__SSE2_X16, negative_scale) { in TEST() argument
[all …]
Dqu8-vlrelu.cc77 TEST(QU8_VLRELU__NEON_X8, negative_scale) { in TEST() argument
80 …for (float negative_scale : std::vector<float>({-127.99609375f, -1.3f, -0.3f, -1.0f / 256.0f, 1 / … in TEST() local
83 .negative_scale(negative_scale) in TEST()
176 TEST(QU8_VLRELU__NEON_X16, negative_scale) { in TEST() argument
179 …for (float negative_scale : std::vector<float>({-127.99609375f, -1.3f, -0.3f, -1.0f / 256.0f, 1 / … in TEST() local
182 .negative_scale(negative_scale) in TEST()
275 TEST(QU8_VLRELU__NEON_X32, negative_scale) { in TEST() argument
278 …for (float negative_scale : std::vector<float>({-127.99609375f, -1.3f, -0.3f, -1.0f / 256.0f, 1 / … in TEST() local
281 .negative_scale(negative_scale) in TEST()
374 TEST(QU8_VLRELU__SSE2_X16, negative_scale) { in TEST() argument
[all …]
Dvlrelu-microkernel-tester.h49 inline VLReLUMicrokernelTester& negative_scale(float negative_scale) { in negative_scale() function
50 assert(std::isnormal(negative_scale)); in negative_scale()
51 this->negative_scale_ = negative_scale; in negative_scale()
55 inline float negative_scale() const { in negative_scale() function
105 … init_params(&params, positive_scale(), negative_scale(), input_zero_point(), output_zero_point()); in Test()
112 const int32_t negative_multiplier = (int32_t) lrintf(-256.0f * negative_scale()); in Test()
150 … init_params(&params, positive_scale(), negative_scale(), input_zero_point(), output_zero_point()); in Test()
157 const int32_t negative_multiplier = (int32_t) lrintf(-256.0f * negative_scale()); in Test()
/external/XNNPACK/src/
Dmicroparams-init.c3478 float negative_scale, in xnn_init_qs8_lrelu_scalar_select_params() argument
3484 assert(negative_scale <= 0x1.0p+7f); in xnn_init_qs8_lrelu_scalar_select_params()
3485 assert(negative_scale >= -0x1.FFFC00p+6f); in xnn_init_qs8_lrelu_scalar_select_params()
3486 assert(fabsf(negative_scale) >= 0x1.0p-8f); in xnn_init_qs8_lrelu_scalar_select_params()
3491 const long negative_multiplier = lrintf(256.0f * negative_scale); in xnn_init_qs8_lrelu_scalar_select_params()
3505 float negative_scale, in xnn_init_qs8_lrelu_scalar_andxor_params() argument
3511 assert(negative_scale <= 0x1.0p+7f); in xnn_init_qs8_lrelu_scalar_andxor_params()
3512 assert(negative_scale >= -0x1.FFFC00p+6f); in xnn_init_qs8_lrelu_scalar_andxor_params()
3513 assert(fabsf(negative_scale) >= 0x1.0p-8f); in xnn_init_qs8_lrelu_scalar_andxor_params()
3518 const long negative_multiplier = lrintf(256.0f * negative_scale); in xnn_init_qs8_lrelu_scalar_andxor_params()
[all …]
/external/XNNPACK/src/xnnpack/
Dmicroparams-init.h610 float negative_scale, \
637 float negative_scale, \
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dxnnpack_delegate.cc3224 const float negative_scale = positive_scale * leaky_relu_params->alpha; in VisitLeakyReluNode() local
3225 if (negative_scale < -127.99609375f || negative_scale > 128.0f || in VisitLeakyReluNode()
3226 std::fabs(negative_scale) < 1.0f / 256.0f) { in VisitLeakyReluNode()
3230 negative_scale, node_index); in VisitLeakyReluNode()