Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TEA-Lab/TwoByTwo
/ cleanup
Function
cleanup
src/script/our_train_A.py:44–45 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
torch.cuda.set_device(rank)
43
44
def
cleanup():
45
dist.destroy_process_group()
46
47
def
train(rank, world_size, conf):
48
os.makedirs(conf.exp.log_dir, exist_ok=True)
Callers
1
train
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected