Learn Before
Code

GPU Device Allocation in PyTorch

In PyTorch, a single GPU can be indicated by torch.device('cuda'). Unlike the CPU device, a GPU device only represents one specific graphics card and its corresponding memory, not all GPUs on the system.

0

1

Updated 2026-05-09

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L