__init__() — pytorch Function Reference
Architecture documentation for the __init__() function in dist_util.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD d7622583_7435_0c2d_689b_eab6ddfd0498["__init__()"] 24a02ede_2e22_3356_43e7_fa91cdbe9e24["__init__()"] 24a02ede_2e22_3356_43e7_fa91cdbe9e24 -->|calls| d7622583_7435_0c2d_689b_eab6ddfd0498 c5c85bd8_9287_390c_b15a_ddc19fe82dc8["__init__()"] c5c85bd8_9287_390c_b15a_ddc19fe82dc8 -->|calls| d7622583_7435_0c2d_689b_eab6ddfd0498 24a02ede_2e22_3356_43e7_fa91cdbe9e24["__init__()"] d7622583_7435_0c2d_689b_eab6ddfd0498 -->|calls| 24a02ede_2e22_3356_43e7_fa91cdbe9e24 style d7622583_7435_0c2d_689b_eab6ddfd0498 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/dist_util.py lines 38–40
def __init__(self, a, b):
super().__init__()
self.weight = nn.Parameter(torch.randn(a, b))
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 2 function(s): __init__, __init__.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free