Home / Function/ allgather_object() — pytorch Function Reference

allgather_object() — pytorch Function Reference

Architecture documentation for the allgather_object() function in benchmark.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  9cb370ea_5749_29d9_5dca_4a2b481fcfac["allgather_object()"]
  d464181f_1726_b6f2_a988_740d44b78bf8["allgather_run()"]
  d464181f_1726_b6f2_a988_740d44b78bf8 -->|calls| 9cb370ea_5749_29d9_5dca_4a2b481fcfac
  5a01be28_6429_ebf7_fc47_02232b445a1f["run_benchmark()"]
  5a01be28_6429_ebf7_fc47_02232b445a1f -->|calls| 9cb370ea_5749_29d9_5dca_4a2b481fcfac
  style 9cb370ea_5749_29d9_5dca_4a2b481fcfac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/distributed/ddp/benchmark.py lines 29–32

def allgather_object(obj):
    out = [None for _ in range(dist.get_world_size())]
    dist.all_gather_object(out, obj)
    return out

Domain

Subdomains

Frequently Asked Questions

What does allgather_object() do?
allgather_object() is a function in the pytorch codebase.
What calls allgather_object()?
allgather_object() is called by 2 function(s): allgather_run, run_benchmark.

Analyze Your Own Codebase

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

Try Supermodel Free