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

Function _provider_palette

benchmarking/plot-triton-bench.py:61–64  ·  view source on GitHub ↗

Return a color mapping for the providers present in the data.

(providers: pd.Series | list[str])

Source from the content-addressed store, hash-verified

59
60
61def _provider_palette(providers: pd.Series | list[str]) -> dict[str, str]:
62 """Return a color mapping for the providers present in the data."""
63 unique = providers if isinstance(providers, list) else providers.unique()
64 return {p: PROVIDER_COLORS[p] for p in unique}
65
66
67def _provider_markers(providers: pd.Series | list[str]) -> dict[str, str]:

Callers 4

plot_batch_scalingFunction · 0.85
plot_memory_throughputFunction · 0.85
plot_rooflineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected