Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShomyLiu/torch-ddp-examples
/ functions
Functions
15 in github.com/ShomyLiu/torch-ddp-examples
⨍
Functions
15
◇
Types & classes
1
↓ 4 callers
Function
load_data_and_labels
Loads MR polarity data from files, splits the data into words and generates labels. Returns split sentences and labels.
utils.py:60
↓ 1 callers
Function
clean_str
Tokenization/string cleaning for all datasets except for SST. Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process
utils.py:39
↓ 1 callers
Function
test
(model, test_loader, device)
horovod_main.py:79
↓ 1 callers
Function
test
(model, test_loader)
accelerate_main.py:60
↓ 1 callers
Function
test
(model, test_loader, device)
ddp_main.py:75
↓ 1 callers
Function
test
(model, test_loader, device)
main.py:62
↓ 1 callers
Function
train
()
horovod_main.py:23
↓ 1 callers
Function
train
()
accelerate_main.py:19
↓ 1 callers
Function
train
()
ddp_main.py:20
↓ 1 callers
Function
train
()
main.py:17
Method
__getitem__
(self, idx)
utils.py:23
Method
__init__
(self, x, y)
utils.py:17
Method
__len__
(self)
utils.py:20
Function
collate_fn
(batch)
utils.py:32
Function
now
()
utils.py:28