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

kmkurn / pytorch-crf / 9408194276
100%

Build:
DEFAULT BRANCH: master
Ran 06 Jun 2024 09:39PM UTC
Jobs 2
Files 1
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 Jun 2024 09:39PM UTC coverage: 100.0% (+100.0%) from 0.0%
9408194276

push

github

kmkurn
Use torch.testing.assert_close instead of approx

The tests outputs `RuntimeError: Can't call numpy() on Tensor that
requires grad. Use tensor.detach().numpy() instead.` for torch above
v1.4. The error seems to came from trying to convert tensor to scalar.

Replace the pytest approx() with `torch.testing.assert_close()`
to let torch handle the conversion.
Use `assert_allclose()` for torch versions before 1.9.0.

124 of 124 relevant lines covered (100.0%)

2.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9408194276.1 06 Jun 2024 09:39PM UTC 0
100.0
GitHub Action Run
2 9408194276.2 06 Jun 2024 09:40PM UTC 0
100.0
GitHub Action Run
Source Files on build 9408194276
Detailed source file information is not available for this build.
  • Back to Repo
  • cc449ebd on github
  • Prev Build on master (#3661379929)
  • Next Build on master (#9436557089)
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