Bug fix in GridKernel logic
@@ -48,7 +48,7 @@ class GridKernel(Kernel):
def __init__(
self, base_kernel: Kernel, grid: List[Tensor], interpolation_mode: bool = False, active_dims: bool = None
):
- if not isinstance(base_kernel, Kernel) and not base_kernel.is_stationary:
+ if not base_kernel.is_stationary:
raise RuntimeError("The base_kernel for GridKernel must be stationary.")
super(GridKernel, self).__init__(active_dims=active_dims)
