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

pytorch / opacus / 13171643435
80%

Build:
DEFAULT BRANCH: main
Ran 06 Feb 2025 04:12AM UTC
Jobs 3
Files 119
Run time 1min
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

06 Feb 2025 01:59AM UTC coverage: 85.214% (-0.1%) from 85.339%
13171643435

push

github

facebook-github-bot
Add per-sample gradient norm computation as a functionality (#724)

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

Per-sample gradient norm is computed for Ghost Clipping, but it can be useful generally. Exposed it as a functionality.

```
...

loss.backward()
per_sample_norms  = model.per_sample_gradient_norms

```

Reviewed By: iden-kalemaj

Differential Revision: D68634969

fbshipit-source-id: 7d5cb8a05

7 of 10 new or added lines in 1 file covered. (70.0%)

6 existing lines in 1 file now uncovered.

5135 of 6026 relevant lines covered (85.21%)

1.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
92.21
-3.31% opacus/grad_sample/grad_sample_module_fast_gradient_clipping.py

Uncovered Existing Lines

Lines Coverage ∆ File
6
80.0
-7.5% opacus/utils/tensor_utils.py
Jobs
ID Job ID Ran Files Coverage
1 run-1 - 13171643435.1 06 Feb 2025 04:24AM UTC 118
84.94
GitHub Action Run
2 run-2 - 13171643435.2 06 Feb 2025 04:24AM UTC 118
85.04
GitHub Action Run
3 run-3 - 13171643435.3 06 Feb 2025 04:12AM UTC 65
48.79
GitHub Action Run
Source Files on build 13171643435
  • Tree
  • List 119
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13171643435
  • 0d186a4e on github
  • Prev Build on main (#13123053632)
  • Next Build on main (#13193020509)
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