FA-98794 / Tensor stride and reshape semantics / Member archive
Tensor views: unsqueeze inserts a unit dimension at normalized axis · case 04
unsqueeze inserts a unit dimension at normalized axis.
Case contract
Insert size one and a contiguous-compatible stride: at end stride 1, otherwise shape[a]*stride[a].
Why this case matters
Dense tensor views rely on consistent logical coordinates and physical storage addresses.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| leading | [[1, 4, 3], [1, 3, 1]] | [[1, 4, 3], [12, 3, 1]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗