Home / Function/ get_field() — pytorch Function Reference

get_field() — pytorch Function Reference

Architecture documentation for the get_field() function in check_accuracy.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  38738e1d_d593_820a_ba60_bd219308d7ba["get_field()"]
  858864ce_33a8_9654_b5b1_91feeb2494e7["check_accuracy()"]
  858864ce_33a8_9654_b5b1_91feeb2494e7 -->|calls| 38738e1d_d593_820a_ba60_bd219308d7ba
  style 38738e1d_d593_820a_ba60_bd219308d7ba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/check_accuracy.py lines 23–27

def get_field(csv, model_name: str, field: str):
    try:
        return csv.loc[csv["name"] == model_name][field].item()
    except Exception:
        return None

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free