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

pytorch / opacus / 17116855573
80%

Build:
DEFAULT BRANCH: main
Ran 21 Aug 2025 04:14AM UTC
Jobs 3
Files 130
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

18 Aug 2025 10:55PM UTC coverage: 80.684%. First build
17116855573

push

github

facebook-github-bot
Fix IAccountant.mechanism accessed as a property (#778)

Summary:
## Types of changes

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Docs change / refactoring / dependency upgrade

## Motivation and Context / Related issue

`Accountant.mechanism` is used as a class property in IAccountant state_dict methods, while it is an overloadable function in the code. It breaks state_dict functionality both ways.

## How Has This Been Tested (if it applies)

This modification has been used to implement a checkpointer for use in with Transformers library. It fails without it and works just fine with the fix.

Test was broken as well.

## Checklist

- [x] The documentation is up-to-date with the changes I made.
- [x] I have read the **CONTRIBUTING** document and completed the CLA (see **CONTRIBUTING**).
- [x] All tests passed, and additional code has been covered with new tests.

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

Reviewed By: EnayatUllah

Differential Revision: D79565816

Pulled By: iden-kalemaj

fbshipit-source-id: 29ea4ee06

2 of 2 new or added lines in 1 file covered. (100.0%)

5543 of 6870 relevant lines covered (80.68%)

1.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3 - 17116855573.1 21 Aug 2025 04:14AM UTC 69
47.92
GitHub Action Run
2 run-1 - 17116855573.2 21 Aug 2025 04:23AM UTC 129
80.46
GitHub Action Run
3 run-2 - 17116855573.3 21 Aug 2025 04:22AM UTC 129
80.46
GitHub Action Run
Source Files on build 17116855573
  • Tree
  • List 130
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17116855573
  • 06cfae27 on github
  • Prev Build on main (#17051015565)
  • Next Build on main (#17136316654)
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