/external/XNNPACK/test/ |
D | leaky-relu.cc | 28 const float negative_slope = std::uniform_real_distribution<float>(0.5f, 1.0f)(rng); in TEST_F() local 50 …ASSERT_EQ(xnn_status_success, xnn_define_leaky_relu(subgraph, negative_slope, input_id, output_id,… in TEST_F() 56 ASSERT_EQ(node->params.leaky_relu.negative_slope, negative_slope); in TEST_F() 66 const float negative_slope = std::uniform_real_distribution<float>(0.5f, 1.0f)(rng); in TEST_F() local 93 …ASSERT_EQ(xnn_status_success, xnn_define_leaky_relu(subgraph, negative_slope, input_id, output_id,… in TEST_F() 99 ASSERT_EQ(node->params.leaky_relu.negative_slope, negative_slope); in TEST_F() 113 const float negative_slope = std::uniform_real_distribution<float>(0.1f, 10.0f)(rng); in TEST_F() local 135 …ASSERT_EQ(xnn_status_success, xnn_define_leaky_relu(subgraph, negative_slope, input_id, output_id,… in TEST_F() 141 ASSERT_EQ(node->params.leaky_relu.negative_slope, negative_slope); in TEST_F() 151 const float negative_slope = std::uniform_real_distribution<float>(0.1f, 10.0f)(rng); in TEST_F() local [all …]
|
D | leaky-relu-nc.cc | 71 for (float negative_slope : std::vector<float>({-10.0f, -1.0f, -0.1f, 0.1f, 10.0f})) { in TEST() local 75 .negative_slope(negative_slope) in TEST() 141 for (float negative_slope : std::vector<float>({-10.0f, -1.0f, -0.1f, 0.1f, 10.0f})) { in TEST() local 145 .negative_slope(negative_slope) in TEST() 166 for (float negative_slope : std::vector<float>({-10.0f, -1.0f, -0.1f, 0.1f, 10.0f})) { in TEST() local 170 .negative_slope(negative_slope) in TEST() 286 for (float negative_slope : std::vector<float>({-10.0f, -1.0f, -0.1f, 0.1f, 10.0f})) { in TEST() local 290 .negative_slope(negative_slope) in TEST()
|
D | leaky-relu-operator-tester.h | 83 inline LeakyReLUOperatorTester& negative_slope(float negative_slope) { in negative_slope() function 84 assert(std::isnormal(negative_slope)); in negative_slope() 85 this->negative_slope_ = negative_slope; in negative_slope() 89 inline float negative_slope() const { in negative_slope() function 155 const uint16_t negative_slope_as_half = fp16_ieee_from_fp32_value(negative_slope()); in TestF16() 173 negative_slope(), in TestF16() 223 const float y = std::signbit(x) ? x * negative_slope() : x; in TestF32() 235 negative_slope(), in TestF32() 257 … << ", input " << input[i * input_stride() + c] << ", negative slope " << negative_slope(); in TestF32() 285 … float y = (x < 0.0f ? x * negative_slope() : x) / output_scale() + float(output_zero_point()); in TestQS8() [all …]
|
/external/XNNPACK/src/subgraph/ |
D | leaky-relu.c | 45 node->params.leaky_relu.negative_slope, in create_leaky_relu_operator() 53 node->params.leaky_relu.negative_slope, in create_leaky_relu_operator() 61 node->params.leaky_relu.negative_slope, in create_leaky_relu_operator() 72 node->params.leaky_relu.negative_slope, in create_leaky_relu_operator() 154 float negative_slope, in xnn_define_leaky_relu() argument 164 if (!isfinite(negative_slope)) { in xnn_define_leaky_relu() 168 negative_slope); in xnn_define_leaky_relu() 250 const float negative_input_output_scale = positive_input_output_scale * negative_slope; in xnn_define_leaky_relu() 274 node->params.leaky_relu.negative_slope = negative_slope; in xnn_define_leaky_relu()
|
/external/tensorflow/tensorflow/python/keras/layers/ |
D | advanced_activations.py | 411 def __init__(self, max_value=None, negative_slope=0, threshold=0, **kwargs): argument 416 if negative_slope is None or negative_slope < 0.: 418 'value. Got: %s' % negative_slope) 427 self.negative_slope = backend.cast_to_floatx(negative_slope) 434 alpha=self.negative_slope, 441 'negative_slope': self.negative_slope,
|
/external/XNNPACK/src/operators/ |
D | prelu-nc.c | 26 const void* negative_slope, in create_prelu_nc() argument 95 pack_prelu_w(channels, negative_slope, weights_ptr); in create_prelu_nc() 124 const void* negative_slope, in xnn_create_prelu_nc_f16() argument 136 negative_slope, flags, in xnn_create_prelu_nc_f16() 148 const float* negative_slope, in xnn_create_prelu_nc_f32() argument 155 negative_slope, flags, in xnn_create_prelu_nc_f32()
|
D | unary-elementwise-nc.c | 877 float negative_slope, in xnn_create_leaky_relu_nc_f16() argument 881 const uint16_t negative_slope_as_half = fp16_ieee_from_fp32_value(negative_slope); in xnn_create_leaky_relu_nc_f16() 882 negative_slope = fp16_ieee_to_fp32_value(negative_slope_as_half); in xnn_create_leaky_relu_nc_f16() 883 if (!isfinite(negative_slope)) { in xnn_create_leaky_relu_nc_f16() 887 negative_slope); in xnn_create_leaky_relu_nc_f16() 907 float negative_slope, in xnn_create_leaky_relu_nc_f32() argument 911 if (!isfinite(negative_slope)) { in xnn_create_leaky_relu_nc_f32() 915 negative_slope); in xnn_create_leaky_relu_nc_f32() 921 xnn_params.f32.lrelu.init.f32_lrelu(¶ms, negative_slope); in xnn_create_leaky_relu_nc_f32() 935 float negative_slope, in xnn_create_leaky_relu_nc_qs8() argument [all …]
|
/external/tensorflow/tensorflow/lite/delegates/xnnpack/ |
D | leaky_relu_tester.h | 47 inline LeakyReluTester& NegativeSlope(float negative_slope) { in NegativeSlope() argument 48 negative_slope_ = negative_slope; in NegativeSlope()
|
D | quantized_leaky_relu_tester.h | 77 inline QuantizedLeakyReluTester& NegativeSlope(float negative_slope) { in NegativeSlope() argument 78 negative_slope_ = negative_slope; in NegativeSlope()
|
/external/XNNPACK/include/ |
D | xnnpack.h | 1262 float negative_slope, 1840 float negative_slope, 1944 const float* negative_slope, 2564 float negative_slope, 2668 const void* negative_slope, 3130 float negative_slope, 3396 float negative_slope,
|
/external/XNNPACK/src/xnnpack/ |
D | subgraph.h | 245 float negative_slope; member
|
D | microfnptr.h | 1941 float negative_slope, 1948 float negative_slope,
|