Repository navigation
Commit e6d97ff
[PyTorch] Fix cross_entropy_forward stride guard for non-contiguous input (NVIDIA#2746)
* Fix cross_entropy_forward stride guard for non-contiguous input
Signed-off-by: Bias92 <pewpewplay315@gmail.com>
* Add regression test for non-contiguous transposed input
Signed-off-by: Bias92 <pewpewplay315@gmail.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: Bias92 <pewpewplay315@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent f64941a commit e6d97ff
2 files changed
Lines changed: 22 additions & 1 deletion
File tree
- tests/pytorch
- transformer_engine/pytorch/triton
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments