Releases · tensorflow/tensorflow · GitHub
github.com › tensorflow › tensorflowChange the default recurrent activation function for LSTM from 'hard_sigmoid' to 'sigmoid' in 2.0. Historically recurrent activation is 'hard_sigmoid' since it is fast than 'sigmoid'. With new unified backend between CPU and GPU mode, since the CuDNN kernel is using sigmoid, we change the default for CPU mode to sigmoid as well.
Keras documentation: Layer activation functions
https://keras.io/api/layers/activationsrelu function. tf.keras.activations.relu(x, alpha=0.0, max_value=None, threshold=0) Applies the rectified linear unit activation function. With default values, this returns the standard ReLU activation: max (x, 0), the element-wise maximum of 0 and the input tensor. Modifying default parameters allows you to use non-zero thresholds, change the ...