tf.keras.backend.dropout

View source

Sets entries in x to zero at random, while scaling the entire tensor.

Aliases:

  • tf.compat.v1.keras.backend.dropout
  • tf.compat.v2.keras.backend.dropout
tf.keras.backend.dropout(
    x,
    level,
    noise_shape=None,
    seed=None
)

Arguments:

  • x: tensor
  • level: fraction of the entries in the tensor that will be set to 0.
  • noise_shape: shape for randomly generated keep/drop flags, must be broadcastable to the shape of x
  • seed: random seed to ensure determinism.

Returns:

A tensor.

results matching ""

    No results matching ""