-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API docs for all direct
nnbench
submodules (#178)
* Remove default APIs * Add API docs for all direct nnbench submodules Also fix a bug in `nnbench.util.flatten()`, which did not use the correct key on a dictionary update. * Add API docs for `nnbench.types` and `nnbench.reporter` Completes the nnbench public API documentation. * Add docstrings to some submodules
- Loading branch information
1 parent
51ddec0
commit 54b004c
Showing
16 changed files
with
347 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
"""A framework for organizing and running benchmark workloads on machine learning models.""" | ||
|
||
from .core import benchmark, parametrize, product | ||
from .reporter import BenchmarkReporter, ConsoleReporter | ||
from .reporter import BenchmarkReporter, ConsoleReporter, FileReporter | ||
from .runner import BenchmarkRunner | ||
from .types import Benchmark, BenchmarkRecord, Memo, Parameters | ||
|
||
__version__ = "0.3.0" | ||
|
||
|
||
# TODO: This isn't great, make it functional instead? | ||
def default_runner() -> BenchmarkRunner: | ||
return BenchmarkRunner() | ||
|
||
|
||
def default_reporter() -> BenchmarkReporter: | ||
return ConsoleReporter() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.