__init__() — pytorch Function Reference
Architecture documentation for the __init__() function in dist_util.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 24a02ede_2e22_3356_43e7_fa91cdbe9e24["__init__()"] d7622583_7435_0c2d_689b_eab6ddfd0498["__init__()"] d7622583_7435_0c2d_689b_eab6ddfd0498 -->|calls| 24a02ede_2e22_3356_43e7_fa91cdbe9e24 d7622583_7435_0c2d_689b_eab6ddfd0498["__init__()"] 24a02ede_2e22_3356_43e7_fa91cdbe9e24 -->|calls| d7622583_7435_0c2d_689b_eab6ddfd0498 style 24a02ede_2e22_3356_43e7_fa91cdbe9e24 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/dist_util.py lines 47–52
def __init__(self, a, b):
super().__init__()
self.net = nn.Sequential(
nn.Linear(a, b),
nn.ReLU(),
)
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does __init__() do?
__init__() is a function in the pytorch codebase.
What does __init__() call?
__init__() calls 1 function(s): __init__.
What calls __init__()?
__init__() is called by 1 function(s): __init__.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free