Home / Function/ lines() — pytorch Function Reference

lines() — pytorch Function Reference

Architecture documentation for the lines() function in huggingface.py from the pytorch codebase.

Entity Profile

Relationship Graph

Source Code

benchmarks/dynamo/huggingface.py lines 121–128

    lines = fh.readlines()
    lines = [line.rstrip() for line in lines]
    for line in lines:
        model_name, batch_size = line.split(",")
        if TORCHBENCH_ONLY_MODELS and model_name not in TORCHBENCH_ONLY_MODELS:
            continue
        batch_size = int(batch_size)
        BATCH_SIZE_KNOWN_MODELS[model_name] = batch_size

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free