From 9d59c04ee2b85f550330d4006604190ceaa71b58 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Fri, 1 Sep 2023 10:16:14 +0800 Subject: [PATCH] [Dy2St]Fix test_lac and test_sentiment UT error (#52109) --- test/dygraph_to_static/test_lac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dygraph_to_static/test_lac.py b/test/dygraph_to_static/test_lac.py index 37715f8392f..e3382d26964 100644 --- a/test/dygraph_to_static/test_lac.py +++ b/test/dygraph_to_static/test_lac.py @@ -79,7 +79,7 @@ class DynamicGRU(paddle.nn.Layer): # input_ = inputs[:, j:j+1, :] # original code input_ = paddle.slice(inputs, axes=[1], starts=[j], ends=[j + 1]) input_ = paddle.reshape(input_, [-1, input_.shape[2]]) - hidden, reset, gate = self.gru_unit(input_, hidden) + hidden, reset = self.gru_unit(input_, hidden) hidden_ = paddle.reshape(hidden, [-1, 1, hidden.shape[1]]) res.append(hidden_) -- GitLab