Home / Function/ parser() — pytorch Function Reference

parser() — pytorch Function Reference

Architecture documentation for the parser() function in check_perf_csv.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  021fc0e9_e720_42f0_c041_56afc4810ec2["parser()"]
  822ce821_2340_d532_b82f_242fe3e587b9["check_perf_csv()"]
  021fc0e9_e720_42f0_c041_56afc4810ec2 -->|calls| 822ce821_2340_d532_b82f_242fe3e587b9
  style 021fc0e9_e720_42f0_c041_56afc4810ec2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/check_perf_csv.py lines 70–83

    parser = argparse.ArgumentParser()
    parser.add_argument("--file", "-f", type=str, help="csv file name")
    parser.add_argument(
        "--threshold", "-t", type=float, help="threshold speedup value to check against"
    )
    parser.add_argument(
        "--threshold-scale",
        "-s",
        type=float,
        default=1.0,
        help="multiply threshold by this value to relax the check",
    )
    args = parser.parse_args()
    check_perf_csv(args.file, args.threshold, args.threshold_scale)

Subdomains

Frequently Asked Questions

What does parser() do?
parser() is a function in the pytorch codebase.
What does parser() call?
parser() calls 1 function(s): check_perf_csv.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free