Skip to content

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

@thibaultdesurrel

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,

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