MCPcopy Create free account
hub / github.com/pytorch/examples / test

Function test

mnist_hogwild/train.py:17–22  ·  view source on GitHub ↗
(args, model, device, dataset, dataloader_kwargs)

Source from the content-addressed store, hash-verified

15
16
17def test(args, model, device, dataset, dataloader_kwargs):
18 torch.manual_seed(args.seed)
19
20 test_loader = torch.utils.data.DataLoader(dataset, **dataloader_kwargs)
21
22 test_epoch(model, device, test_loader)
23
24
25def train_epoch(epoch, args, model, device, data_loader, optimizer):

Callers 1

main.pyFile · 0.90

Calls 1

test_epochFunction · 0.85

Tested by

no test coverage detected