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

bethgelab / foolbox / 8139142615

04 Mar 2024 11:04AM UTC coverage: 98.477%. Remained the same
8139142615

push

github

web-flow
Fix guide compilation (#722)

* Replace yarn with npm

3492 of 3546 relevant lines covered (98.48%)

7.22 hits per line

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

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

4

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

8

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

© 2025 Coveralls, Inc