Skip to content

Commit ae5f662

Browse files
committed
sync nb
1 parent 39f41f3 commit ae5f662

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fasterbench/benchmark.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Benchmark module"""
22

3-
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/benchmark.ipynb.
3+
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/07_benchmark.ipynb.
44

5-
# %% ../nbs/benchmark.ipynb #bbaee268
5+
# %% ../nbs/07_benchmark.ipynb #bbaee268
66
from __future__ import annotations
77

88
import json
@@ -20,7 +20,7 @@
2020
# %% auto #0
2121
__all__ = ['BenchmarkResult', 'benchmark']
2222

23-
# %% ../nbs/benchmark.ipynb #qwob04wlkqs
23+
# %% ../nbs/07_benchmark.ipynb #qwob04wlkqs
2424
def _fmt_params(n: int) -> str:
2525
"""Format parameter count with appropriate suffix."""
2626
if n >= 1e9: return f"{n/1e9:.2f}B"
@@ -121,7 +121,7 @@ def __len__(self) -> int: return len(self.as_dict())
121121
def __str__(self) -> str: return self._format_summary()
122122
def __repr__(self) -> str: return self._format_summary()
123123

124-
# %% ../nbs/benchmark.ipynb #a89d8062
124+
# %% ../nbs/07_benchmark.ipynb #a89d8062
125125
_VALID_METRICS = frozenset({"size", "speed", "compute", "memory", "energy"})
126126

127127

0 commit comments

Comments
 (0)