Commit 80da097
authored
Fix Transpose Optimization Bug With non-4D Tensor Input (#12520)
Summary: Fixed a bug in the channels last tagged reshape pass, where
non-4d inputs were being tagged as contiguous/channels last memory
formats, which isn't expected as these formats only apply to 4d tensors.
The repro is in N7569847. The fix was completed by checking tensor shape
size before tagging input nodes.
Reviewed By: mcr229
Differential Revision: D783574281 parent 9e05d89 commit 80da097
File tree
1 file changed
+5
-1
lines changed- backends/xnnpack/_passes
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
461 | 465 | | |
462 | 466 | | |
463 | 467 | | |
| |||
0 commit comments