MCPcopy Index your code
hub / github.com/pytorch/tutorials / get_data

Function get_data

beginner_source/nn_tutorial.py:668–672  ·  view source on GitHub ↗
(train_ds, valid_ds, bs)

Source from the content-addressed store, hash-verified

666
667
668def get_data(train_ds, valid_ds, bs):
669 return (
670 DataLoader(train_ds, batch_size=bs, shuffle=True),
671 DataLoader(valid_ds, batch_size=bs * 2),
672 )
673
674###############################################################################
675# Now, our whole process of obtaining the data loaders and fitting the

Callers 1

nn_tutorial.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected