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

Do not reuse mini-batches between epochs in DPSGD example. #230

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

copybara-service[bot]
Copy link

Do not reuse mini-batches between epochs in DPSGD example.

As pointed out in #149, the dataset in the DPSGD example was converted to a
list which meant that the same mini-batches were used for each epoch. This is
fixed now so that the data is shuffled differently in each epoch.

The change led to a small (20%) performance decrease when running on a GPU but this
could be solved by prefetching batches.

@google-cla google-cla bot added the cla: yes copybara label for automatic import label Nov 18, 2021
As pointed out in #149, the dataset in the DPSGD example was converted to a
list which meant that the same mini-batches were used for each epoch. This is
fixed now so that the data is shuffled differently in each epoch.

The change led to a small (20%) performance decrease when running on a GPU but this
could be solved by prefetching batches.

PiperOrigin-RevId: 411027866
@copybara-service copybara-service bot merged commit 4750dd9 into master Nov 19, 2021
@copybara-service copybara-service bot deleted the test_410783051 branch November 19, 2021 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes copybara label for automatic import
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant