__init__() — pytorch Function Reference
Architecture documentation for the __init__() function in benchmark.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 0ff2b5ad_9adc_b581_5b45_a7379b152253["__init__()"] 882d3a13_fd8e_0c43_60ba_7f8237ff9c6d["__init__()"] 882d3a13_fd8e_0c43_60ba_7f8237ff9c6d -->|calls| 0ff2b5ad_9adc_b581_5b45_a7379b152253 882d3a13_fd8e_0c43_60ba_7f8237ff9c6d["__init__()"] 0ff2b5ad_9adc_b581_5b45_a7379b152253 -->|calls| 882d3a13_fd8e_0c43_60ba_7f8237ff9c6d style 0ff2b5ad_9adc_b581_5b45_a7379b152253 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/distributed/ddp/benchmark.py lines 156–160
def __init__(self, device, distributed_backend, bucket_size):
self.device = device
self.batch_size = 32
self.distributed_backend = distributed_backend
self.bucket_size = bucket_size
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