Home / Function/ construct_name() — pytorch Function Reference

construct_name() — pytorch Function Reference

Architecture documentation for the construct_name() function in compare-fastrnn-results.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  e81b59ad_1eef_8632_0b0f_7b024eeee6d1["construct_name()"]
  f56b83c3_0951_d749_c006_3b6434e6b9e5["get_times()"]
  f56b83c3_0951_d749_c006_3b6434e6b9e5 -->|calls| e81b59ad_1eef_8632_0b0f_7b024eeee6d1
  style e81b59ad_1eef_8632_0b0f_7b024eeee6d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/compare-fastrnn-results.py lines 9–12

def construct_name(fwd_bwd, test_name):
    bwd = "backward" in fwd_bwd
    suite_name = fwd_bwd.replace("-backward", "")
    return f"{suite_name}[{test_name}]:{'bwd' if bwd else 'fwd'}"

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free