Dropout

class dragon.vm.tensorflow.keras.layers.Dropout(
  rate,
  **kwargs
)[source]

The dropout layer. [Srivastava et.al, 2014].

The Dropout function is defined as:

\[\text{Dropout}(x) = x * \text{Bernoulli}(p=1 - prob) \]

Examples:

m = tf.keras.layers.Dropout(0.5)
print(m(tf.ones((2, 3), 'float32')))

__init__

Dropout.__init__(
  rate,
  **kwargs
)[source]

Create a Dropout layer.

Parameters:
  • rate (Union[float, dragon.Tensor]) – The dropping probability.