整流线性单元。

使用默认值,它返回按元素的max(x, 0)。

否则,它遵循:

如果 x >= max_value:f(x) = max_value,
如果 threshold <= x < max_value:f(x) = x,
否则:f(x) = alpha * (x - threshold)。
参数:

x:张量或变量。
alpha:标量,负值部分的斜率(默认= 0.)。
max_value:浮点数。饱和度阈值。
threshold:浮点数。阈值**的阈值。
返回:

张量。

tf -- activations -- relu
tf -- activations -- relu

相关文章:

  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-07-25
  • 2022-01-01
  • 2021-06-26
猜你喜欢
  • 2021-06-12
  • 2021-08-24
  • 2021-10-11
  • 2021-09-27
  • 2022-12-23
  • 2022-01-03
相关资源
相似解决方案