You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOC] Dynamic-layout guide example uses incompatible singleton strides #3760
The same mismatch affects the later leading_dim=2 example. The t1 and t2 examples also print t2 and t3, respectively, before those variables have been defined.
Verification: Ran the six positive examples t0–t5 in a GH200 environment with the main editable core and torch 2.11.0, and an H100 environment with CuTe DSL 4.8.1 and torch 2.13.0. The original and a print-only repair fail at the stride check. Using explicit singleton strides and correcting the print variables makes all six layouts match the documented output in both environments. This checks tensor-layout metadata, not GPU kernel performance; deliberate-error snippets elsewhere in the guide are outside this report.
Suggested fix: Construct b with torch.empty_strided((1, 4, 1, 32, 1), (1, 1, 1, 4, 1)), and print the variables just defined.
Submitted #3757 with explicit singleton strides and the corrected print variables. All six positive layouts t0–t5 match the documented output in both the GH200 and H100 environments. The runtime behavior and deliberate-error examples are unchanged.
Activity
0z5a commentedon Oct 20, 2026
Submitted #3757 with explicit singleton strides and the corrected print variables. All six positive layouts t0–t5 match the documented output in both the GH200 and H100 environments. The runtime behavior and deliberate-error examples are unchanged.