Benchmarks
Benchmark loading and management module.
This module provides functionality for loading benchmark data and extracting features from benchmark code. It handles loading MLIR benchmark files, extracting operation features, and optionally applying img2col transformations for convolutional operations.
Benchmarks(is_training=True)
A class that holds benchmarks data
Attributes:
| Name | Type | Description |
|---|---|---|
data |
list[BenchmarkFeatures]
|
The list containing features of loaded benchmarks |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
is_training
|
bool
|
Whether to load train or evaluation set |
True
|
Source code in mlir_rl_artifact/benchmarks.py
__len__()
__getitem__(idx)
Get a benchmark by index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
idx
|
int
|
The index of the benchmark to retrieve. |
required |
Returns:
| Type | Description |
|---|---|
BenchmarkFeatures
|
The benchmark features at the specified index. |