Learn Before
Concept

Accelerator-Preferred Default Tensor Allocation

While some frameworks allocate new tensors on the CPU by default, others, such as JAX and TensorFlow, utilize an accelerator-preferred allocation strategy. In these frameworks, newly created tensors are automatically stored on a GPU or TPU if one is detected on the system; they only fall back to using the CPU if no accelerated hardware is available.

0

1

Updated 2026-05-09

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L