From 13828db313aa7a5e15b57125de10dc2725545669 Mon Sep 17 00:00:00 2001 From: GaoWei8 <53294385+GaoWei8@users.noreply.github.com> Date: Wed, 25 Nov 2020 16:46:20 +0800 Subject: [PATCH] Add reminder of fluid.layers.lstm (#28964) * add reminder of fluid.layers.lstm --- python/paddle/fluid/layers/rnn.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/paddle/fluid/layers/rnn.py b/python/paddle/fluid/layers/rnn.py index 2f11603d484..6e1f91a1f28 100644 --- a/python/paddle/fluid/layers/rnn.py +++ b/python/paddle/fluid/layers/rnn.py @@ -18,6 +18,7 @@ import sys from functools import partial, reduce import paddle +from paddle.utils import deprecated from . import nn from . import tensor from . import control_flow @@ -2418,6 +2419,10 @@ def dynamic_lstm(input, return hidden, cell +@deprecated( + since='2.0.0', + update_to='paddle.nn.LSTM', + reason="This API may occur CUDNN errors.") def lstm(input, init_h, init_c, -- GitLab