Replies: 1 comment 4 replies
-
In general, yes, GPyTorch typically assumes that the inputs are a single tensor (usually of shape It should be possible to get a version working with another data type (a list or something else like that) by overwriting the forwards method of (exact or approximate) gp and writing specialized means and kernels. Is there a specific data type that you're trying to use here? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
It seems that the signature for the forward method for Approximate GP cannot be overridden.
Indeed, the Approximate GP class overrides the
__call__
method from module. This override requires the forward method to have a parameter namedinputs
as single parameters.Then it seems not possible to create a custom class where several inputs are given to the forward method.
I'm not sure I understand why it is imposed to have a single tensor as input. Because with most pytorch classes there is a lot of freedom to easily adapt existing classes to different projects.
Is it a constraint that the class only uses variational_distribution based on covariance and mean values.
If we want to overload the signature of the forward method, it seems that we should also overload the functions of the variational strategies?
I may have missed some information.
Beta Was this translation helpful? Give feedback.
All reactions