Skip to contents

Randomly set some portion of values in the tensor to 0.

Usage

random_dropout(inputs, rate, noise_shape = NULL, seed = NULL)

Arguments

inputs

A tensor

rate

numeric

noise_shape

A shape() value

seed

Initial seed for the random number generator

Value

A tensor that is a copy of inputs with some values set to 0.