Commit 756da08
committed
Fix edge-mode pad gradient by pinning the edge width to 1
_get_edges sliced with symbolic indices, leaving the length-1 axis unknown,
so set_subtensor's gradient never summed over the broadcast.1 parent 3bb9e9c commit 756da08
2 files changed
Lines changed: 11 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 319 | + | |
336 | 320 | | |
337 | 321 | | |
338 | 322 | | |
| |||
413 | 397 | | |
414 | 398 | | |
415 | 399 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | 400 | | |
420 | 401 | | |
421 | | - | |
422 | | - | |
| 402 | + | |
| 403 | + | |
423 | 404 | | |
424 | 405 | | |
425 | | - | |
426 | | - | |
427 | | - | |
| 406 | + | |
428 | 407 | | |
429 | 408 | | |
430 | 409 | | |
| |||
0 commit comments