Problem with SingleTaskGP #2264
-
I encountered a Problem while working with the SingleTaskGP model.
Previously i worked with a custom Botorch GP model and created a class which inherents from ´gpytorch.models.ExactGP´. I also set the default data type to double with ´torch.set_default_dtype(torch.double)´ The code to reproduce the error is:
The custom GP class that i used was:
Did somebody encounter this problem before? Please let me know if you have any tips on how to solve this problem. :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
nevermind i think i could solve the problem. I still don't know why the ExactGP class could handle the different datatypes though... |
Beta Was this translation helpful? Give feedback.
nevermind i think i could solve the problem.
Even when i set
torch.set_default_dtype(torch.double)
the sobol samples returned a float32 typ so i had to define the dtype with:X = SobolEngine(dimension=DIM, scramble=True, seed=0).draw(N_INIT,dtype=torch.double)
This seems to have fixed the problem.
I still don't know why the ExactGP class could handle the different datatypes though...