Learn Before
Definition

Sequence Slicing Notation for Last Elements

The notation [-m-1:] denotes a slicing operation used to extract the final m+1 elements from a sequence. This is a common way to select a trailing portion of a sequence in programming and mathematical contexts, such as selecting specific hidden states in a neural network.

Image 0

0

1

Updated 2025-10-07

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences