Skip to content

Commit 8cb3df6

Browse files
authored
Drop legacy modules (flagos-ai#2721)
1 parent beb5ae9 commit 8cb3df6

8 files changed

Lines changed: 22 additions & 1050 deletions

benchmark/attri_util.py

Lines changed: 0 additions & 274 deletions
This file was deleted.

benchmark/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
import flag_gems
1313
from flag_gems.utils import shape_utils
1414

15-
from .attri_util import (
15+
from .conftest import Config, emit_record_logger
16+
from .consts import (
1617
BOOL_DTYPES,
1718
COMPLEX_DTYPES,
1819
DEFAULT_METRICS,
@@ -27,7 +28,6 @@
2728
check_metric_dependencies,
2829
model_shapes,
2930
)
30-
from .conftest import Config, emit_record_logger
3131

3232
torch_backend_device = flag_gems.runtime.torch_backend_device
3333
torch_device_fn = flag_gems.runtime.torch_device_fn

benchmark/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import yaml
88

99
import flag_gems
10-
from benchmark.attri_util import (
10+
from benchmark.consts import (
1111
ALL_AVAILABLE_METRICS,
1212
BOOL_DTYPES,
1313
DEFAULT_ITER_COUNT,

0 commit comments

Comments
 (0)