Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

训练两个模型共用embedding,计算梯度出错

Open sgcsky opened this issue 7 years ago • 2 comments

训练gan模型的时候,dis和gen共用同一个embedding,在minimize的时候报Exception: Accumulator moment1 already exists for parameter emb 要怎么解决呢? 网络里embedding的定义 image 生成网络的代码 image image image

sgcsky avatar Jun 19 '19 06:06 sgcsky

分别在自己的program_guard下调用minimize?

seiriosPlus avatar Jun 19 '19 07:06 seiriosPlus

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 Jun 22 '20 09:06 paddle-bot-old