Skip to content

Some notes on the comment in kernel.py #1010

Closed
@Zhaoyi-Yan

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions