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

bethgelab / foolbox / 8139141456

04 Mar 2024 11:03AM UTC coverage: 37.923% (-60.6%) from 98.477%
8139141456

Pull #722

github

web-flow
Merge 5663238db into 17e0e9b31
Pull Request #722: Fix guide compilation

1344 of 3544 relevant lines covered (37.92%)

0.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/foolbox/devutils.py
1
"""Internal module with utility functions"""
2
import eagerpy as ep
1✔
3

4

5
def flatten(x: ep.Tensor, keep: int = 1) -> ep.Tensor:
1✔
6
    return x.flatten(start=keep)
×
7

8

9
def atleast_kd(x: ep.Tensor, k: int) -> ep.Tensor:
1✔
10
    shape = x.shape + (1,) * (k - x.ndim)
×
11
    return x.reshape(shape)
×
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