Learn R Programming

RBERT (version 0.1.11)

dropout: Perform Dropout

Description

Perform Dropout

Usage

dropout(input_tensor, dropout_prob = NULL)

Arguments

input_tensor

Float Tensor to perform dropout on.

dropout_prob

A double giving the probability of dropping out a value (NOT of KEEPING a dimension as in `tf.nn.dropout`).

Value

A version of `input_tensor` with dropout applied.

Examples

Run this code
# NOT RUN {
tfx <- tensorflow::tf$get_variable("none", tensorflow::shape(10L))
dropout(tfx, 0.5)
# }

Run the code above in your browser using DataLab