Paddle
Paddle copied to clipboard
训练两个模型共用embedding,计算梯度出错
训练gan模型的时候,dis和gen共用同一个embedding,在minimize的时候报Exception: Accumulator moment1 already exists for parameter emb
要怎么解决呢?
网络里embedding的定义
生成网络的代码

分别在自己的program_guard下调用minimize?
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。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。