aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops
diff options
context:
space:
mode:
authorGravatar Scott Zhu <scottzhu@google.com>2018-10-01 11:29:30 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-01 11:39:18 -0700
commitf0f301f05fb1f1965c966ef57cc390e48d966f12 (patch)
tree29be99009e738828ee13cbd6d72ebee0b8e772c9 /tensorflow/python/ops
parenta9b01e8a31a02188bc81349c103f136095f322ac (diff)
Add deprecation notice for BasicRNNCell, which will be replaced by keras.SimpleRNNCell.
PiperOrigin-RevId: 215249611
Diffstat (limited to 'tensorflow/python/ops')
-rw-r--r--tensorflow/python/ops/rnn_cell_impl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/python/ops/rnn_cell_impl.py b/tensorflow/python/ops/rnn_cell_impl.py
index c2751e529a..dd4f3d7a99 100644
--- a/tensorflow/python/ops/rnn_cell_impl.py
+++ b/tensorflow/python/ops/rnn_cell_impl.py
@@ -370,7 +370,7 @@ class LayerRNNCell(RNNCell):
*args, **kwargs)
-@tf_export("nn.rnn_cell.BasicRNNCell")
+@tf_export(v1=["nn.rnn_cell.BasicRNNCell"])
class BasicRNNCell(LayerRNNCell):
"""The most basic RNN cell.
@@ -393,6 +393,8 @@ class BasicRNNCell(LayerRNNCell):
`trainable` etc when constructing the cell from configs of get_config().
"""
+ @deprecated(None, "This class is equivalent as tf.keras.layers.SimpleRNNCell,"
+ " and will be replaced by that in Tensorflow 2.0.")
def __init__(self,
num_units,
activation=None,