• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pytorch / opacus / 14142042872 / 2
80%
main: 80%

Build:
DEFAULT BRANCH: main
Ran 29 Mar 2025 04:24AM UTC
Files 120
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Mar 2025 06:18PM UTC coverage: 85.496% (-0.2%) from 85.71%
14142042872.2

push

github

facebook-github-bot
How to initialize dataloader with DPDDP when poisson sampling is set to False (#745)

Summary:
Pull Request resolved: https://github.com/pytorch/opacus/pull/745

https://github.com/pytorch/opacus/issues/444

When poisson sampling is enabled, it acts as a distributed sampler by default i.e., splits the dataset across the devices equally and then each device selects each sample from its subset independently with probability sample_rate.
However, when poisson sampling is disabled, the user needs to explicitly include the distributed sampler in the dataloader and adjust the batch size based on the world size as shown below.
```
dataloader = DataLoader(dataset, batch_size=batch_size//world_size, sampler=DistributedSampler(dataset))
```

This is expected behavior and therefore requires no fix. Updating the document to include this information.

Reviewed By: HuanyuZhang

Differential Revision: D71654351

fbshipit-source-id: d7ce3aeb7

5211 of 6095 relevant lines covered (85.5%)

0.85 hits per line

Source Files on job run-1 - 14142042872.2
  • Tree
  • List 120
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14142042872
  • 0fc2567c on github
  • Prev Job for on main (#13773951446.3)
  • Next Job for on main (#14163888414.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc