MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / read_triton_bench_csv

Function read_triton_bench_csv

benchmarking/plot_lib.py:9–13  ·  view source on GitHub ↗

Read a Triton benchmark CSV, stripping the ' (Time (ms))' column suffix.

(path: Path)

Source from the content-addressed store, hash-verified

7
8
9def 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
16def minmax_skip_zero_range(x: pd.Series) -> tuple[float, float]:

Callers 2

collect_long_dfFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected