Skip to content

Commit

Permalink
Avoid evaluating kernel in expand_batch (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyfriar authored Nov 29, 2022
1 parent 27b07e9 commit 93623d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gpytorch/lazy/lazy_evaluated_kernel_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ def _diagonal(self) -> torch.Tensor:
res = res.to_dense()
return res.view(self.shape[:-1]).contiguous()

def _expand_batch(self, batch_shape):
return self.evaluate_kernel()._expand_batch(batch_shape)

def _getitem(self, row_index, col_index, *batch_indices):
x1 = self.x1
x2 = self.x2
Expand Down

0 comments on commit 93623d9

Please sign in to comment.