diff options
author | 2016-11-14 16:06:36 -0800 | |
---|---|---|
committer | 2016-11-14 16:23:13 -0800 | |
commit | e8167643ce20f5f94c1508ed8d23cd164a16ee0b (patch) | |
tree | d8efedf53450da88de8be57574698dab6dbc1117 /tensorflow/contrib/rnn/python/ops/lstm_ops.py | |
parent | a374ea13c0c7b9598b5ada851b43655f895a578e (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.py | 7 |
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. |