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

Function parse_args

benchmarking/plot_ncu_kernel_breakdown.py:45–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def parse_args():
46 parser = argparse.ArgumentParser(description=__doc__)
47 parser.add_argument("--dir", required=True, help="Directory with bszN/ subdirs")
48 parser.add_argument(
49 "--method",
50 default="all",
51 choices=list(METHOD_FILENAMES.keys()) + ["all"],
52 help="Which method to plot (default: all)",
53 )
54 parser.add_argument("--fmt", default="png", help="Output image format (default: png)")
55 return parser.parse_args()
56
57
58def load_method(base: Path, bsz_dirs: list[Path], method: str) -> pd.DataFrame:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected