Commit 0432fe2
Static attention: support overriding RMSNorm class
Summary: CoreML backend should not use the default torch.nn.RMSNorm because it leads to worse precision, where as QNN backend should as it leads to a single operator that's more efficient. Support overriding the normalization layer class.
Differential Revision: D789266031 parent 7e82d00 commit 0432fe2
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
844 | 846 | | |
845 | 847 | | |
846 | 848 | | |
| |||
864 | 866 | | |
865 | 867 | | |
866 | 868 | | |
867 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
868 | 872 | | |
869 | | - | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
870 | 876 | | |
871 | 877 | | |
872 | 878 | | |
| |||
0 commit comments