Learn Before
Concept
Tensor Element Assignment
Specific elements or contiguous ranges within a tensor can be modified in-place by specifying their indices and assigning new values. By positioning indexing or slicing operations on the left-hand side of an assignment operator, data can be written directly to those specific locations within the tensor.
0
1
Updated 2026-05-01
Tags
D2L
Dive into Deep Learning @ D2L