未验证 提交 9d59c04e 编写于 作者: A Aurelius84 提交者: GitHub

[Dy2St]Fix test_lac and test_sentiment UT error (#52109)

上级 ddc81cc2
......@@ -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_)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册