Open KeAWang opened 5 years ago
However it doesn't fail on pytorch stable 1.0.0
still failing....
I think I might be running into this same issue? I have two GP models (both with the same structure and hyperparameters). For one model, I use set_data
to give it n
data points. For the other, I give it the first n/2
points with set_data
then the second n/2
with get_fantasy_model
. All checks indicate that the training inputs and targets are the same between the two GPs. However, their predictions are not the same. Oddly, if I do gp2.set_train_data(gp2.train_inputs[0], gp2.train_targets)
(i.e. set the train data of the fantasy GP to be what it already is) then the predictions come out the same. So this seems to be related to the updating of the test-time caches that happens in get_fantasy_model
.
The master branch currently fails this test in addition to #483
I'm using a recent pytorch nightly
The unittest failure: