Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现了一个多GPU训练的小BUG #8

Open
Hanlard opened this issue Jul 11, 2020 · 1 comment
Open

发现了一个多GPU训练的小BUG #8

Hanlard opened this issue Jul 11, 2020 · 1 comment

Comments

@Hanlard
Copy link

Hanlard commented Jul 11, 2020

            在预训练主程序里有一段,求多个GPU的平均值,这里没平均g_loss和d_loss后面会报错
            if args.n_gpu > 1:
                loss = loss.mean()  # mean() to average on multi-gpu.
                g_loss = g_loss.mean()
                d_loss = d_loss.mean()
@652994331
Copy link

您好 我现在自己产生的预训练数据集还要些问题,可以请教下您吗,谢谢。详细问题在这里#9 , 应该是使用流程上的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants