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

Function assign_col_time_ms

src/fused_mm_sampling/bench/speed_test.py:197–200  ·  view source on GitHub ↗
(df: pd.DataFrame)

Source from the content-addressed store, hash-verified

195
196
197def assign_col_time_ms(df: pd.DataFrame) -> pd.DataFrame:
198 df["GPU Time (ms)"] = (df["GPU Time (sec)"] * 1e3).round(3)
199 df["CPU Time (ms)"] = (df["CPU Time (sec)"] * 1e3).round(3)
200 return df
201
202
203def _as_torch_stream(cs: "nvbench.CudaStream") -> torch.cuda.ExternalStream:

Callers 1

run_nvbenchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected