Home / Function/ apply_lints() — pytorch Function Reference

apply_lints() — pytorch Function Reference

Architecture documentation for the apply_lints() function in update_expected.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  c4a9f6c1_de66_1e74_7b94_87f1e31d3f21["apply_lints()"]
  9c7cdd83_081e_ffec_b29f_0c8c75d577e4["write_filtered_csvs()"]
  9c7cdd83_081e_ffec_b29f_0c8c75d577e4 -->|calls| c4a9f6c1_de66_1e74_7b94_87f1e31d3f21
  style c4a9f6c1_de66_1e74_7b94_87f1e31d3f21 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/ci_expected_accuracy/update_expected.py lines 253–259

def apply_lints(filename):
    patch = json.loads(subprocess.check_output([sys.executable, CSV_LINTER, filename]))
    if patch.get("replacement"):
        with open(filename) as fd:
            data = fd.read().replace(patch["original"], patch["replacement"])
        with open(filename, "w") as fd:
            fd.write(data)

Subdomains

Frequently Asked Questions

What does apply_lints() do?
apply_lints() is a function in the pytorch codebase.
What calls apply_lints()?
apply_lints() is called by 1 function(s): write_filtered_csvs.

Analyze Your Own Codebase

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

Try Supermodel Free