Read a Triton benchmark CSV, stripping the ' (Time (ms))' column suffix.
(path: Path)
| 7 | |
| 8 | |
| 9 | def read_triton_bench_csv(path: Path) -> pd.DataFrame: |
| 10 | """Read a Triton benchmark CSV, stripping the ' (Time (ms))' column suffix.""" |
| 11 | df = pd.read_csv(path) |
| 12 | df.columns = [c.removesuffix(" (Time (ms))") for c in df.columns] |
| 13 | return df |
| 14 | |
| 15 | |
| 16 | def minmax_skip_zero_range(x: pd.Series) -> tuple[float, float]: |
no outgoing calls
no test coverage detected