GPU Platforms
Repeated Tensor Indexes Need an Update Rule
Repeated indexes identify update occurrences that can target the same entity. An additive feature-update handoff must retain each destination's starting value and include every contribution addressed to it. In UPDATE-35, starting values [10,20,30], destination indexes [1,1,2] and contributions [3,5,7] require the final entity values [10,28,37]. A repeated read or an unspecified duplicate replacement cannot establish that result.
01
Identify the destinations separately from the occurrences
Fictional example UPDATE-35 has three entities, A, B and C, with dimensionless scalar features [10,20,30]. Their zero-based destination indexes are 0, 1 and 2. The complete output must retain that entity order.
Three supplied contribution records have destination indexes [1,1,2] and amounts [3,5,7]. The first contributes 3 to B, the second contributes 5 to B, and the third contributes 7 to C. The requirement explicitly includes both contributions to B. No replacement priority is stipulated.
There are three destination entities, three update occurrences and two touched entities. Equal lengths for the destination vector and contribution list are coincidental: their positions describe different populations. A receives no contribution but retains its output position.
The example uses exact finite integer arithmetic to interpret a supplied handoff. It contains no executed tensor workload, autograd or optimizer behavior, broadcasting assumption or parallel execution result.
02
A repeated read returns B twice
Reading the starting feature vector at indexes [1,1,2] produces [20,20,30]. Those positions refer to B, B and C. Adding each occurrence's contribution separately gives 20 + 3 = 23, 20 + 5 = 25 and 30 + 7 = 37.
The resulting [23,25,37] contains two separate calculations from B's original value of 20. It does not describe a progression from 20 to 23 to 28. Nor does its first position describe A. Presenting those three numbers as the final A,B,C vector changes their identity mapping.
PyTorch 2.14's Tensor Views note distinguishes advanced-index reads, which return copies, from indexed assignment, which changes the destination. The integer-index selection here is an advanced-index read. Changing a separately retained read copy does not itself update the original destination.
The related tensor-views article explains that storage relationship. The additional question here is how several occurrence records become one final value at their shared destination.
References: [P3]
03
Duplicate replacement leaves this requirement unresolved
PyTorch 2.14 documents index_put_ as indexed assignment. With accumulate=False, duplicate indices have undefined behavior. The reference supplies no first-writer or last-writer promise.
Writing [23,25,37] back to destinations [1,1,2] under that nonaccumulating contract therefore supplies no defined final value for B. Neither 23 nor 25 can be asserted as the documented outcome. Both would also miss the required sum of B's contributions.
An addition sign in an earlier occurrence calculation does not establish accumulation at the destination. The handoff must identify the operation that combines collisions, rather than leaving two replacements addressed to the same entity.
References: [P1]
04
Keep the baseline once and add every contribution
The required rule is: final entity value = starting entity value + the sum of all contribution amounts addressed to that entity. An entity with no contribution keeps its starting value.
A stays at 10. B becomes 20 + 3 + 5 = 28. C becomes 30 + 7 = 37. The final destination vector, in A,B,C order, is [10,28,37]. Each entity appears once, while all three contribution occurrences have been included.
The baseline total is 10 + 20 + 30 = 60. The contribution total is 3 + 5 + 7 = 15. The destination total is 10 + 28 + 37 = 75, reconciling 60 + 15.
PyTorch 2.14 supplies an additive branch in index_put_ through accumulate=True. Its index_add_ reference separately specifies source addition along a chosen dimension, scaled by alpha. At alpha=1, the original amounts [3,5,7] have the unscaled additive meaning needed here. The index vector's length must match the source's indexed dimension; other dimensions must match the destination.
05
Accumulation needs the contribution amounts
Selecting an additive operation also requires identifying what its input values mean. UPDATE-35's deltas are [3,5,7]. Its separately calculated occurrence values [23,25,37] already contain starting features.
If those preadded values were instead treated as additive amounts against the unchanged baseline, the arithmetic would give B = 20 + 23 + 25 = 68 and C = 30 + 37 = 67. With A retained at 10, that would produce [10,68,67]. This is another mathematical interpretation of the supplied numbers, not a runtime observation.
That error counts baseline values again. A handoff labeled updated values must therefore say whether it supplies deltas, replacement values or a completed destination vector. An accumulation setting alone cannot correct the wrong value interpretation.
06
Check membership and results at each destination
For B, the useful evidence connects two occurrence records, carrying 3 and 5, to one destination whose starting value is 20. A compact summary can report B's combined contribution as 8, provided both original occurrences remain accounted for. Keeping only one record because its destination index repeats would discard a required contribution.
The final result must also preserve A's 10 and associate C's contribution of 7 with C. An output containing only the touched destinations answers a different question from a complete three-entity feature vector unless its separate mapping and reconstruction are explicit.
The total of 75 is a useful consistency check, but it cannot establish correct destination membership. For example, [10,27,38] also totals 75 while assigning incorrect values to B and C. Compare the per-entity calculation as well as the aggregate.
These checks explain what is missing from a supplied artifact: [23,25,37] describes occurrence calculations; duplicate nonaccumulating replacement supplies no defined collision result; the stated additive rule yields [10,28,37]. Equal output lengths do not make those artifacts equivalent.
07
Ask for the operation and its numerical acceptance basis
An interpretable handoff identifies the entity-to-index mapping, starting destination state, contribution occurrences and whether each supplied value is a delta or a replacement. It then names the collision operation and returns the result with its entity order. Any scaling belongs with that operation.
PyTorch's index_add_ reference warns of possible nondeterminism on CUDA. A documented additive meaning therefore does not establish bitwise reproducibility. That qualification is distinct from the undefined duplicate-replacement behavior above, which leaves the collision result unspecified.
Have the appointed software owner identify the actual framework version, dtype, device and numerical acceptance requirements when supplying execution evidence. UPDATE-35 establishes the expected mathematical result under its additive premises. A runtime claim needs evidence for the offered configuration.
The sampler guide addresses how repeated processing occurrences arise; the CSR guide addresses positional storage. Here, the supplied occurrences are already fixed. The decision is whether the returned feature state includes each intended contribution at its intended destination.
References: [P2]
08
Connect a separate physical installation requirement
If the selected AI equipment also needs physical installation, use Leviathan's related rack-and-stack service and project inquiry to discuss agreed mounting, IT cabling, labels and installation records. Share a nonconfidential equipment list, rack and cable plans, site, target window and required physical handoff.
Feature-update implementation and software acceptance remain with the appointed software team.
References: [L1]
09Sources
Primary sources
- [P1]PyTorch 2.14 — torch.Tensor.index_put_Checked 2026-10-21. Distinguishes additive accumulation from indexed replacement with undefined duplicate-index behavior.
- [P2]PyTorch 2.14 — torch.Tensor.index_add_Checked 2026-10-21. Defines scaled indexed source addition, matching dimensions and the CUDA nondeterminism qualification.
- [P3]PyTorch 2.14 — Tensor Views: indexing noteChecked 2026-10-21. Separates advanced-index read copies from assignment into the destination tensor.
- [L1]Leviathan Systems — Rack & Stack / ColocationChecked 2026-10-21. Defines agreed physical mounting, IT cabling, labels and installation records.
Contact
Need physical installation for selected equipment?
Share a nonconfidential equipment, rack, cable and site outline to discuss physical installation scope, handoff requirements and availability.