Skip to content

Support matrix power for lazy tensor #424

@huguesva

Description

@huguesva

Hello,

Do you know if it is possible to compute the matrix power of a pykeops torch lazytensor?
I tried via matrix multiplication @ and get the following error:

import torch 
from torchdr import pairwise_distances

X = torch.randn(100, 10)
Y = torch.randn(100, 10)

dist, _ = pairwise_distances(X, Y, backend="keops")    # Compute Euclidean dist as lazy tensor
print(dist @ dist)

gives the error:

AttributeError: 'LazyTensor' object has no attribute 'view'

Thanks a lot!

Metadata

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