Python – tensorflow.math.softplus()
TensorFlow是谷歌设计的开源Python库,用于开发机器学习模型和深度学习神经网络。
softplus()是用来计算元素的log(exp(features) + 1)。
语法: tensorflow.math.softplus(features, name)
参数:
- features: 它是一个张量。允许的dtypes是一半,bfloat16,float32,float64。
- name(可选): 它定义了该操作的名称。
返回:它返回一个张量。
示例 1:
输出:
例子2:视觉化
输出: