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 1-1 retrieves the final element along that particular dimension, while 2-2 retrieves the second-to-last element.

0

1

Updated 2026-05-01

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L