__init__.py 1022 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
from superbench.benchmarks.return_code import ReturnCode
9
10
from superbench.benchmarks.context import Platform, Framework, Precision, ModelAction, \
    DistributedImpl, DistributedBackend, BenchmarkType, BenchmarkContext
11
from superbench.benchmarks.reducer import ReduceType
12
13
14
15
16
17
18
19
20
21
22
23
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']
            ]
        )
    )
)
24
25

__all__ = [
26
    'ReturnCode', 'Platform', 'Framework', 'BenchmarkType', 'Precision', 'ModelAction', 'DistributedImpl',
27
    'DistributedBackend', 'BenchmarkContext', 'BenchmarkRegistry', 'ReduceType'
28
]