Home
last modified time | relevance | path

Searched refs:negative_slope (Results 1 – 14 of 14) sorted by relevance

/external/XNNPACK/test/
Dleaky-relu-nc.cc48 for (float negative_slope = 1.0e-4f; negative_slope < 1.0f; negative_slope *= 3.14159265f) { in TEST() local
52 .negative_slope(negative_slope) in TEST()
213 for (float negative_slope = 1.0e-4f; negative_slope < 1.0f; negative_slope *= 3.14159265f) { in TEST() local
217 .negative_slope(negative_slope) in TEST()
Dleaky-relu-operator-tester.h78 inline LeakyReLUOperatorTester& negative_slope(float negative_slope) { in negative_slope() function
79 assert(negative_slope > 0.0f); in negative_slope()
80 assert(negative_slope < 1.0f); in negative_slope()
81 this->negative_slope_ = negative_slope; in negative_slope()
85 inline float negative_slope() const { in negative_slope() function
172 const float y = std::signbit(x) ? x * negative_slope() : x; in TestF32()
184 negative_slope(), in TestF32()
206 … << ", input " << input[i * input_stride() + c] << ", negative slope " << negative_slope(); in TestF32()
228 float y = (x < 0.0f ? x * negative_slope() : x) / output_scale(); in TestQU8()
242 negative_slope(), in TestQU8()
/external/XNNPACK/src/subgraph/
Dleaky-relu.c18 float negative_slope, in xnn_define_leaky_relu() argument
29 if (!isfinite(negative_slope)) { in xnn_define_leaky_relu()
33 negative_slope); in xnn_define_leaky_relu()
57 node->params.leaky_relu.negative_slope = negative_slope; in xnn_define_leaky_relu()
/external/XNNPACK/src/operators/
Dleaky-relu-nc.c25 float negative_slope, in xnn_create_leaky_relu_nc_qu8() argument
69 if (negative_slope <= 0.0f || !isnormal(negative_slope)) { in xnn_create_leaky_relu_nc_qu8()
72 xnn_operator_type_to_string(xnn_operator_type_leaky_relu_nc_qu8), negative_slope); in xnn_create_leaky_relu_nc_qu8()
76 if (negative_slope > 1.0f) { in xnn_create_leaky_relu_nc_qu8()
79 xnn_operator_type_to_string(xnn_operator_type_leaky_relu_nc_qu8), negative_slope); in xnn_create_leaky_relu_nc_qu8()
138 float y = x < 0.0f ? x * negative_slope : x; in xnn_create_leaky_relu_nc_qu8()
Dprelu-nc.c24 const float* negative_slope, in xnn_create_prelu_nc_f32() argument
80 memcpy(prelu_op->packed_weights, negative_slope, channels * sizeof(float)); in xnn_create_prelu_nc_f32()
Dunary-elementwise-nc.c369 float negative_slope, in xnn_create_leaky_relu_nc_f32() argument
373 if (!isfinite(negative_slope)) { in xnn_create_leaky_relu_nc_f32()
377 negative_slope); in xnn_create_leaky_relu_nc_f32()
381 const union xnn_f32_lrelu_params params = xnn_init_f32_lrelu_params(negative_slope); in xnn_create_leaky_relu_nc_f32()
/external/tensorflow/tensorflow/python/keras/layers/
Dadvanced_activations.py405 def __init__(self, max_value=None, negative_slope=0, threshold=0, **kwargs): argument
410 if negative_slope < 0.:
412 'cannot be negative value: ' + str(negative_slope))
421 self.negative_slope = K.cast_to_floatx(negative_slope)
428 alpha=self.negative_slope,
435 'negative_slope': self.negative_slope,
Dadvanced_activations_test.py79 'LeakyRelu' in keras.layers.ReLU(negative_slope=0.2)(x).name)
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dleaky_relu_tester.h47 inline LeakyReluTester& NegativeSlope(float negative_slope) { in NegativeSlope() argument
48 negative_slope_ = negative_slope; in NegativeSlope()
/external/XNNPACK/src/xnnpack/
Dsubgraph.h188 float negative_slope; member
/external/XNNPACK/include/
Dxnnpack.h968 float negative_slope,
1392 float negative_slope,
1496 const float* negative_slope,
2149 float negative_slope,
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.layers.-re-l-u.pbtxt132 …argspec: "args=[\'self\', \'max_value\', \'negative_slope\', \'threshold\'], varargs=None, keyword…
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.keras.layers.-re-l-u.pbtxt132 …argspec: "args=[\'self\', \'max_value\', \'negative_slope\', \'threshold\'], varargs=None, keyword…
/external/XNNPACK/src/
Druntime.c542 node->params.leaky_relu.negative_slope, in xnn_create_runtime_v2()