Commit 324b7e2
Add a
Summary:
Pull Request resolved: #1344
Adds a `skip_expand` option to `AppendFeatures` transform, which skips the `expand` operation in the `forward` pass, allowing it to be mixed with an `InputPerturbation` transform without multiplying the size of the output tensor. When used together, each perturbation and each appended feature will appear only once in the output tensor per q-batch.
Reviewed By: danielrjiang
Differential Revision: D38594609
fbshipit-source-id: 8cf1a8cbfb1be6faf3ba7a524d784f6488f461f0skip_expand option to AppendFeatures (#1344)1 parent 2444d58 commit 324b7e2
File tree
2 files changed
+41
-4
lines changed- botorch/models/transforms
- test/models/transforms
2 files changed
+41
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
968 | 969 | | |
969 | 970 | | |
970 | 971 | | |
| |||
974 | 975 | | |
975 | 976 | | |
976 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
977 | 982 | | |
978 | 983 | | |
979 | 984 | | |
| |||
984 | 989 | | |
985 | 990 | | |
986 | 991 | | |
| 992 | + | |
987 | 993 | | |
988 | 994 | | |
989 | 995 | | |
| |||
1003 | 1009 | | |
1004 | 1010 | | |
1005 | 1011 | | |
1006 | | - | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1007 | 1016 | | |
1008 | 1017 | | |
1009 | 1018 | | |
1010 | 1019 | | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1014 | 1028 | | |
1015 | 1029 | | |
1016 | 1030 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
826 | 849 | | |
827 | 850 | | |
828 | 851 | | |
| |||
0 commit comments