Commit bc03f27
committed
Fix size of histc return on CPU when input is 0-dimensional and bins=1.
This triggers the wrong scalar_check unless it is explicitly overridden (because the heuristic uses the shape of the input).
This wasn't an issue on CUDA because it didn't use TH, so doesn't have scalar checks.
gh-metadata: pytorch pytorch 21497 gh/gchanan/26/head1 parent d7197bc commit bc03f27
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1758 | 1758 | | |
1759 | 1759 | | |
1760 | 1760 | | |
| 1761 | + | |
1761 | 1762 | | |
1762 | 1763 | | |
1763 | 1764 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2646 | 2646 | | |
2647 | 2647 | | |
2648 | 2648 | | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
2649 | 2656 | | |
2650 | 2657 | | |
2651 | 2658 | | |
| |||
0 commit comments