Non lazy variable has posterior strategy
@@ -2,6 +2,7 @@ import torch
import gpytorch
from gpytorch.lazy import LazyVariable
from gpytorch.utils import function_factory
+from ..posterior import DefaultPosteriorStrategy
class NonLazyVariable(LazyVariable):
@@ -32,6 +33,9 @@ class NonLazyVariable(LazyVariable):
def mul(self, constant):
return NonLazyVariable(self.var.mul(constant))
+ def posterior_strategy(self):
+ return DefaultPosteriorStrategy(self)
+
def representation(self):
return self.var,
