torch.SubscriptIndex
export type SubscriptIndex =
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
| 13
| 14
| 15
| 16
| 17
| 18
| 19
| 20
| 21
| 22
| 23
| 24
| 25
| 26
| 27
| 28
| 29
| 30
| 31
| 32
| 33
| 34
| 35
| 36
| 37
| 38
| 39
| 40
| 41
| 42
| 43
| 44
| 45
| 46
| 47
| 48
| 49
| 50
| 51;Values
0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
Valid subscript index for einsum sublist notation.
Ranges from 0-51, mapping to:
- 0-25: Uppercase letters A-Z
- 26-51: Lowercase letters a-z
Used in sublist notation: [0, 1, 2, ...] representing 'ABC...' in string notation.
Examples
// Sublist notation with indices
const result = torch.einsum(
A, [0, 1], // 'ij'
B, [1, 2], // 'jk'
[0, 2] // 'ik'
);