Learn Before
Concept
Negative Tensor Indexing
Tensors allow for negative indexing, which is a method used to select elements based on their relative distance from the end of an axis. For instance, using an index of retrieves the final element along that particular dimension, while retrieves the second-to-last element.
0
1
Updated 2026-05-01
Tags
D2L
Dive into Deep Learning @ D2L