This repository was archived by the owner on Jul 1, 2025. It is now read-only.
Commit 5a32c42
Make pool tests test layout conversion (#3578)
Summary:
**Summary**
This commit modifies the max and average pool tests in `GradCheckTest` to
test layout conversion as well. At present, `NHWC `-> `NCHW` layout
conversion for these test cases ends up becoming a `Reshape`, which can be
a no-op on the device.
**Testing**
These tests are enabled for the `Interpreter`. All unit tests pass.
Pull Request resolved: #3578
Differential Revision: D17694767
Pulled By: SplitInfinity
fbshipit-source-id: 36cc1dd733c3fefed254520c52824c9acfd174431 parent 43edf7f commit 5a32c42
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
590 | 591 | | |
591 | 592 | | |
592 | 593 | | |
593 | 594 | | |
594 | 595 | | |
595 | | - | |
| 596 | + | |
596 | 597 | | |
597 | 598 | | |
598 | 599 | | |
| |||
616 | 617 | | |
617 | 618 | | |
618 | 619 | | |
619 | | - | |
| 620 | + | |
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
625 | 626 | | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
630 | 632 | | |
631 | | - | |
| 633 | + | |
632 | 634 | | |
633 | 635 | | |
634 | 636 | | |
| |||
0 commit comments