Commit 4192fec
authored
Make Tester check shapes of reference and model output (pytorch#7589)
Make Tester check shapes of ref and model output
torch.allclose() will broadcast data if neccessary. This means that
Tester.run_method_and_compare_outputs() may pass even though a delegate
produced an output of wrong shape.
Change-Id: If62907e0fc69cc28b1f5ce5f8cfd6f31b1870a1e
Signed-off-by: Oscar Andersson <[email protected]>1 parent a059981 commit 4192fec
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
679 | 680 | | |
680 | 681 | | |
681 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
682 | 686 | | |
683 | 687 | | |
684 | 688 | | |
| |||
0 commit comments