|TensorFlow 1 version||View source on GitHub|
Applies Dropout to the input.
Compat aliases for migration
See Migration guide for more details.
tf.keras.layers.Dropout( rate, noise_shape=None, seed=None, **kwargs )
Used in the notebooks
|Used in the guide||Used in the tutorials|
The Dropout layer randomly sets input units to 0 with a frequency of
at each step during training time, which helps prevent overfitting.
Inputs not set to 0 are scaled up by 1/(1 - rate) such that the sum over
all inputs is unchange