Commit 68f7e2e
committed
Consistently return d unchanged for empty key iteration across spatial transforms
Unify the first_key == () handling in RandAffined, Rand2DElasticd,
Rand3DElasticd, RandZoomd, and RandSimulateLowResolutiond to return
the dict directly instead of calling convert_to_tensor on the entire
dict, which could inadvertently convert non-tensor metadata.
Signed-off-by: Heyang Qin <qysnn1@gmail.com>1 parent 7d5bf42 commit 68f7e2e
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
1165 | | - | |
| 1164 | + | |
1166 | 1165 | | |
1167 | 1166 | | |
1168 | 1167 | | |
| |||
1322 | 1321 | | |
1323 | 1322 | | |
1324 | 1323 | | |
1325 | | - | |
1326 | | - | |
| 1324 | + | |
1327 | 1325 | | |
1328 | 1326 | | |
1329 | 1327 | | |
| |||
1473 | 1471 | | |
1474 | 1472 | | |
1475 | 1473 | | |
1476 | | - | |
1477 | | - | |
| 1474 | + | |
1478 | 1475 | | |
1479 | 1476 | | |
1480 | 1477 | | |
| |||
2134 | 2131 | | |
2135 | 2132 | | |
2136 | 2133 | | |
2137 | | - | |
2138 | | - | |
| 2134 | + | |
2139 | 2135 | | |
2140 | 2136 | | |
2141 | 2137 | | |
| |||
2633 | 2629 | | |
2634 | 2630 | | |
2635 | 2631 | | |
2636 | | - | |
2637 | | - | |
| 2632 | + | |
2638 | 2633 | | |
2639 | 2634 | | |
2640 | 2635 | | |
| |||
0 commit comments