xref: /llvm-project/mlir/utils/mbr/mbr/__init__.py (revision f9008e6366c2496b1ca1785b891d5578174ad63e)
1"""The public API of this library is defined or imported here."""
2import dataclasses
3import typing
4
5
6@dataclasses.dataclass
7class BenchmarkRunConfig:
8    """Any benchmark runnable by this library must return an instance of this
9    class. The `compiler` attribute is optional, for example for python
10    benchmarks.
11    """
12
13    runner: typing.Callable
14    compiler: typing.Optional[typing.Callable] = None
15