You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix sample_points_around_best when using 20 dimensional inputs or prob_perturb (#1290)
Summary:
Pull Request resolved: #1290
When using 20 dimensional inputs, `sample_points_around_best` would return `n // 2` samples, which would lead to errors when reshaping it in `gen_batch_initial_conditions`. Similarly, if one were to use `prob_perturb` with <20 dimensions, they would get `n + n // 2` samples. This changes the two `if` statements that control this to use the same conditional, eliminating the bug.
Reviewed By: Balandat
Differential Revision: D37705879
fbshipit-source-id: b6716dc934c3760cc00bd9d0c74305d6bf05ea27
0 commit comments