Learn Before
Concept

Default Tensor Device Allocation

By default, tensors are created in the main memory, and the system's CPU is used to perform calculations on them. However, practitioners can explicitly specify other devices, such as GPUs, for storage and calculation.

0

1

Updated 2026-05-09

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L