Paddle
Paddle copied to clipboard
GRU层如何传入mask
我要实现一个网络:gru的输出和bert的输出进行拼接,由于paddle bert现在输入都是padding好的,所以gru层输入也是padding的,gru层应该如何传入mask呢?
可以在输入gru之前,进行一次 paddle.fluid.layers.sequence_unpad操作,再输出到gru中
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。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。