dropout: Perform Dropout

View source: R/modeling.R

dropoutR Documentation

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

## Not run: 
tfx <- tensorflow::tf$get_variable("none", tensorflow::shape(10L))
dropout(tfx, 0.5)

## End(Not run)

jonathanbratt/RBERT documentation built on Jan. 26, 2023, 4:15 p.m.