Commit e1c69fa
committed
Fix SplitDim spatial_ndim regression and stale duplicate test
b0397db passed no_channel=True to _normalize_spatial_ndim, which made
the limit ndim instead of ndim-1 and broke
test_spatial_ndim_channel_dim_no_decrement (expected 1, got 2).
Revert to channel-first clamping in array.py (the c6a32b9 behavior)
and update the duplicate assertion in
tests/data/meta_tensor/test_spatial_ndim.py, which c6a32b9 missed,
so both tests agree that SplitDim(dim=0, keepdim=False) on a (3,8,7)
MetaTensor yields spatial_ndim=1.
Signed-off-by: Soumya Snigdha Kundu <soumya_snigdha.kundu@kcl.ac.uk>1 parent b0397db commit e1c69fa
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
| 333 | + | |
335 | 334 | | |
336 | 335 | | |
337 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments