Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

GRU层如何传入mask

Open laoliukan opened this issue 7 years ago • 3 comments

laoliukan avatar Apr 24 '19 08:04 laoliukan

我要实现一个网络:gru的输出和bert的输出进行拼接,由于paddle bert现在输入都是padding好的,所以gru层输入也是padding的,gru层应该如何传入mask呢?

laoliukan avatar Apr 24 '19 09:04 laoliukan

可以在输入gru之前,进行一次 paddle.fluid.layers.sequence_unpad操作,再输出到gru中

junjun315 avatar Apr 24 '19 09:04 junjun315

Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

paddle-bot-old avatar May 22 '20 10:05 paddle-bot-old