aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/rnn/python/ops/lstm_ops.py
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2016-11-14 16:06:36 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-11-14 16:23:13 -0800
commite8167643ce20f5f94c1508ed8d23cd164a16ee0b (patch)
treed8efedf53450da88de8be57574698dab6dbc1117 /tensorflow/contrib/rnn/python/ops/lstm_ops.py
parenta374ea13c0c7b9598b5ada851b43655f895a578e (diff)
Remove unneeded call_cpp_shape_fn call, since it is now the default.
Change: 139134328
Diffstat (limited to 'tensorflow/contrib/rnn/python/ops/lstm_ops.py')
-rw-r--r--tensorflow/contrib/rnn/python/ops/lstm_ops.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tensorflow/contrib/rnn/python/ops/lstm_ops.py b/tensorflow/contrib/rnn/python/ops/lstm_ops.py
index 5ab571b1bb..df7ab78897 100644
--- a/tensorflow/contrib/rnn/python/ops/lstm_ops.py
+++ b/tensorflow/contrib/rnn/python/ops/lstm_ops.py
@@ -292,10 +292,6 @@ def _LSTMBlockCellGrad(op, *grad):
wco_grad, b_grad)
-ops.RegisterShape("LSTMBlockCellGrad")(common_shapes.call_cpp_shape_fn)
-ops.RegisterShape("BlockLSTM")(common_shapes.call_cpp_shape_fn)
-
-
@ops.RegisterGradient("BlockLSTM")
def _BlockLSTMGrad(op, *grad):
"""Gradient for BlockLSTM."""
@@ -331,9 +327,6 @@ def _BlockLSTMGrad(op, *grad):
wcf_grad, b_grad]
-ops.RegisterShape("BlockLSTMGrad")(common_shapes.call_cpp_shape_fn)
-
-
class LSTMBlockCell(rnn_cell.RNNCell):
"""Basic LSTM recurrent network cell.