# Dropout¶

class ivy.neural_net_stateful.layers.Dropout(prob, scale=True)[source]
__init__(prob, scale=True)[source]

Dropout layer. The layer randomly zeroes some of the elements of the input tensor with probability p using samples from a Bernoull distribution.

Parameters
• prob (float) – The probability of zeroing out each array element.

• scale (bool, optional) – Whether to scale the output by 1/(1-prob), default is True.

Supported Frameworks: