The newest version of scipy contains a new optimization shortcut for the case of lower and upper bounds being equal. This procedure passes a non-writable array without copying it. As botorch calls torch.from_numpy on this array, a UserWarning is triggered. This causes our current tests to fail, see #843
Proposed solution:
Opinions on whether or not to temporarily fix @AdrianSosic @Scienfitz @kalama-ai ?
The newest version of
scipycontains a new optimization shortcut for the case of lower and upper bounds being equal. This procedure passes a non-writable array without copying it. Asbotorchcallstorch.from_numpyon this array, aUserWarningis triggered. This causes our current tests to fail, see #843Proposed solution:
scipy/botorchfor fixes: Turns outscipyis sufficientscipybeing accepted and merged: BUG: Copy non-writable array when all bounds are equal to preventUserWarningscipy/scipy#25541Opinions on whether or not to temporarily fix @AdrianSosic @Scienfitz @kalama-ai ?