tf.nn.rnn_cell.DropoutWrapper.__init__(cell, input_keep_prob=1.0, output_keep_prob=1.0, seed=None)
Create a cell with added input and/or output dropout.
Dropout is never used on the state.
Args:
-
cell
: an RNNCell, a projection to output_size is added to it. -
input_keep_prob
: unit Tensor or float between 0 and 1, input keep probability; if it is float and 1, no input dropout will be added. -
output_keep_prob
: unit Tensor or float between 0 and 1, output keep probability; if it is float and 1, no output dropout will be added. -
seed
: (optional) integer, the randomness seed.
Raises:
-
TypeError
: if cell is not an RNNCell. -
ValueError
: if keep_prob is not between 0 and 1.
Please login to continue.