MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / setup

Function setup

train.py:32–37  ·  view source on GitHub ↗
(args, rank, world_size)

Source from the content-addressed store, hash-verified

30
31
32def setup(args, rank, world_size):
33 os.environ['MASTER_ADDR'] = args.master_addr
34 os.environ['MASTER_PORT'] = args.master_port
35
36 # initialize the process group
37 dist.init_process_group("nccl", rank=rank, world_size=world_size)
38
39def cleanup():
40 dist.destroy_process_group()

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected