tf.keras.backend.relu | TensorFlow v2.0.0 (original) (raw)
tf.keras.backend.relu
Stay organized with collections Save and categorize content based on your preferences.
Rectified linear unit.
View aliases
Compat aliases for migration
SeeMigration guide for more details.
tf.compat.v1.keras.backend.relu
tf.keras.backend.relu(
x, alpha=0.0, max_value=None, threshold=0
)
With default values, it returns element-wise max(x, 0)
.
Otherwise, it follows:f(x) = max_value
for x >= max_value
,f(x) = x
for threshold <= x < max_value
,f(x) = alpha * (x - threshold)
otherwise.
Arguments | |
---|---|
x | A tensor or variable. |
alpha | A scalar, slope of negative section (default=0.). |
max_value | float. Saturation threshold. |
threshold | float. Threshold value for thresholded activation. |
Returns |
---|
A tensor. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.