__init__.py 871 Bytes
Newer Older
1
2
3
4
5
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

"""Exposes interfaces of benchmarks used by SuperBench executor."""

6
7
import importlib

8
9
from superbench.benchmarks.return_code import ReturnCode
from superbench.benchmarks.context import Platform, Framework, Precision, ModelAction, BenchmarkType, BenchmarkContext
10
11
12
13
14
15
16
17
18
19
20
21
from superbench.common.utils import LazyImport

BenchmarkRegistry = LazyImport(
    'superbench.benchmarks.registry', 'BenchmarkRegistry', lambda: list(
        map(
            importlib.import_module, [
                'superbench.benchmarks.{}'.format(module)
                for module in ['model_benchmarks', 'micro_benchmarks', 'docker_benchmarks']
            ]
        )
    )
)
22
23
24
25
26

__all__ = [
    'ReturnCode', 'Platform', 'Framework', 'BenchmarkType', 'Precision', 'ModelAction', 'BenchmarkContext',
    'BenchmarkRegistry'
]