Commit a92b8a5
committed
enforce that
Summary:
Ensures that if the data dims are (M, K) then scale dims are (M, K //
block_size). Previously the scale dims were (M, K // block_size, 1).
No logic change in surrounding code, but this is definitely more
correct.
Test Plan:
```
pytest test/prototype/mx_formats
./test/prototype/mx_formats/test_mx_dtensor.sh
```
Reviewers:
Subscribers:
Tasks:
Tags:
ghstack-source-id: 50e45ce
ghstack-comment-id: 3049035188
Pull Request resolved: #2506MXTensor scale dimensions are consistent with data1 parent e675ffd commit a92b8a5
File tree
2 files changed
+9
-0
lines changed- test/prototype/mx_formats
- torchao/prototype/mx_formats
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
0 commit comments