PyTorch with CUDA QUIZ (MCQ QUESTIONS AND ANSWERS)

Total Correct: 0

Time:20:00

Question: 1

What does the torch.nn.parallel.scatter_kwargs function do in PyTorch?

Question: 2

How can you set the current GPU device to the default GPU in PyTorch?

Question: 3

What is the purpose of the torch.cuda.memory_allocated() function in PyTorch?

Question: 4

How can you set the GPU device for a specific PyTorch tensor?

Question: 5

What is the purpose of the torch.nn.DataParallel module compared to torch.nn.parallel.DataParallel?

Question: 6

Which method is used to move a PyTorch tensor to a specific GPU device?

Question: 7

How can you print detailed information about the currently selected GPU device in PyTorch?

Question: 8

What is the purpose of the torch.nn.parallel.scatter_kwargs function in PyTorch?

Question: 9

Which method can be used to check if a PyTorch tensor is contiguous in memory after moving it between CPU and GPU?

Question: 10

What is the purpose of the torch.cuda.empty_cache() function in PyTorch?

Question: 11

Which PyTorch module is used for data parallelism across multiple GPUs on a single node?

Question: 12

What does the method tensor.cpu() do in PyTorch?

Question: 13

Which command can be used to get the index of the default GPU device in PyTorch?

Question: 14

What is the purpose of the torch.nn.parallel.parallel_apply function in PyTorch?

Question: 15

To check if a PyTorch tensor is currently on the GPU, which method can be used?

Question: 16

Which PyTorch function is used to check if CUDA (GPU support) is available on your system?

Question: 17

What does the torch.nn.parallel.replicate function do in PyTorch?

Question: 18

What is the purpose of the torch.Tensor.detach method in PyTorch?

Question: 19

Which method can be used to get the name of the GPU device in PyTorch?

Question: 20

In PyTorch, what is the purpose of the torch.nn.parallel.parallel_apply function?

Question: 21

To move a PyTorch tensor to the default GPU (if available), which method should be used?

Question: 22

Which command can be used to list all available GPU devices in PyTorch?

Question: 23

What is the purpose of the torch.nn.parallel.scatter function in PyTorch?

Question: 24

Which method is used to clone a PyTorch tensor while keeping it on the same device (CPU or GPU)?

Question: 25

How can you retrieve the index of the currently selected GPU device in PyTorch?

Question: 26

In PyTorch, what is the purpose of the torch.nn.parallel.DistributedDataParallel module?

Question: 27

What does the method tensor.to("cpu") do in PyTorch?

Question: 28

Which function can be used to set the current GPU device in PyTorch?

Question: 29

What is the purpose of the torch.nn.DataParallel module in PyTorch?

Question: 30

To move a PyTorch tensor from CPU to GPU, which method should be used?