Commit b0cc808b authored by Scott Zhu's avatar Scott Zhu Committed by TensorFlower Gardener
Browse files

Update the default RNNCell in tf 2.0 API.

1. Make the tf.nn.rnn_cell.RNNCell to be v1 only since it not properly behave
in v2, eg still use scope, etc.

2. Add the tf.keras.layers.AbstractRNNCell as the preferred
implementation of RNN cell. The cell has same method comparing to nn.rnn.RNNCell. The difference are base classes, and variable scope usage. This cell will be used in tf.contrib to replace the usage of LayerRNNCell as base class.

PiperOrigin-RevId: 235798594
parent 7f312d6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment