Closed
Description
https://github.com/cornellius-gp/gpytorch/blob/master/gpytorch/kernels/kernel.py#L28
Although in this script, it says that when
pytorch/pytorch#25799
is merged, the Distance class can be replaced with torch.cdist
.
However, even though the pull request is merged, current torch.cdist
and torch.pdist
still suffer from bugs on hanlding large batchsize.
See
pytorch/pytorch#31593
pytorch/pytorch#31167
So I try this funciton, and it works fine!
Thank you, guys!
Metadata
Assignees
Labels
No labels
Activity