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

How to add DDP with val loader? #6

Open
cswwp opened this issue Oct 23, 2020 · 2 comments
Open

How to add DDP with val loader? #6

cswwp opened this issue Oct 23, 2020 · 2 comments

Comments

@cswwp
Copy link

cswwp commented Oct 23, 2020

How to add DDP with val evaluation? Is it same with train? @yangkky

@yangkky
Copy link
Owner

yangkky commented Oct 23, 2020 via email

@rancheng
Copy link

This code is pretty clear:
https://github.com/rwightman/pytorch-image-models/blob/master/train.py#L730-L732

            reduced_loss = reduce_tensor(loss.data, args.world_size)
            acc1 = reduce_tensor(acc1, args.world_size)
            acc5 = reduce_tensor(acc5, args.world_size)

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

3 participants