Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ func
Function
func
imperative/python/test/unit/distributed/test_distributed.py:124–125 ·
view source on GitHub ↗
(rank, q)
Source
from the content-addressed store, hash-verified
122
123
@dist.synchronized
124
def
func(rank, q):
125
q.put(rank)
126
127
def
worker(rank, q):
128
dist.init_process_group(
"localhost"
, port, world_size, rank, rank)
Callers
1
worker
Function · 0.70
Calls
1
put
Method · 0.45
Tested by
no test coverage detected