-
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.
core: Discover benchmark families as well
Requires some tweaking of designated benchmark types in `nnbench.collect()` and `nnbench.run()`. Now, we pick up every module member that is either a `Benchmark` or `BenchmarkFamily`. Finally, in `nnbench.run()`, we create a composite iterator over our findings (currently, most often a list, but single benchmarks / families are also supported), which allows to keep the main loop intact no matter what the user chooses to pass.
- Loading branch information
1 parent
1461984
commit 3931d32
Showing
2 changed files
with
25 additions
and
15 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