check

PyTorch DataLoader Quiz

This quiz will test your knowledge of PyTorch DataLoaders.  At the end you will be asked to provide an email where we will send you a copy of the results.

Click the button below to start.

Start

Question 1 of 5

PyTorch DataLoaders perform which of the following functions?

(Select all that apply)
A

Slices dataset into batches for training process

B

Speeds-up data loading with parallelization

C

Updates the model weights

D

Shuffles the data as it’s passed into the training process

Question 2 of 5

Setting num_workers to a value greater than 0 will:

A

Speed-up the data-loading process

B

Shuffle the data as the batches are created

C

Set the batch size for every mini-batch

Question 3 of 5

You will need to create a separate DataLoaders for the training, testing and validation datasets.

A

True

B

False

Question 4 of 5

Which setting will speed-up data loading if using a CUDA device by removing a memory copy:

A

num_workers

B

pin_memory

C

drop_last

Question 5 of 5

If you want to avoid using the last mini-batch during training if your total dataset is not divisible by the batch_size you would:

A

Set num_workers to 0

B

Set shuffle to True

C

Set drop_last to True

D

Set pin_memory to True

Confirm and Submit