

def call(self, x, mask=None):
    if (0.0 < self.p < 1.0):
        x = K.in_train_phase(K.dropout(x, level=self.p), x)
    return x

dataset/ETHPy150Open fchollet/keras/keras/layers/core.py Dropout.call/original