- Notifications
You must be signed in to change notification settings - Fork26.3k
Commitf73345c
Fix unsafe_chunk decomposition for empty tensors (#170053)
Fixes#147277Summary:- Fix `torch.unsafe_chunk` with empty size input tensor.- Matches eager mode behaviorPull Requestresolved:#170053Approved by:https://github.com/cyyever,https://github.com/jansel1 parent9ec52b5 commitf73345c
File tree
4 files changed
+18
-1
lines changed- test
- dynamo_expected_failures
- inductor
- torch/_decomp
4 files changed
+18
-1
lines changedWhitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4592 | 4592 | | |
4593 | 4593 | | |
4594 | 4594 | | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
4595 | 4609 | | |
4596 | 4610 | | |
4597 | 4611 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2040 | 2040 | | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | | - | |
| 2043 | + | |
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
| |||
0 commit comments
Comments
(0)