Skip to content

Add the possibility of the exponent in matrix_power to be a Tensor #6

Open

Description

@thibaultdesurrel

Hi,

Could it be possible to have the exponent parameter in matrix_power be either a single float number or a Tensor with the same number of elements as X ?
Then, when exponent is a tensor, the output would be $\text{out}_i = X_i^{\text{exponent}_i}$.

This would match PyTorch's torch.pow.

Cheers,

Activity

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

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