Skip to content

Commit

Permalink
fix for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijangda committed Feb 3, 2025
1 parent 05d8eb6 commit 8e62107
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,10 @@ def _matmul(
) -> Union[Float[torch.Tensor, "... M C"], Float[torch.Tensor, "... M"]]:
res = fktorch.gekmm([op.to_dense() for op in self.linear_ops], rhs.contiguous())
return res

def rmatmul(self: Float[LinearOperator, "... M N"],
rhs: Union[Float[Tensor, "... P M"], Float[Tensor, "... M"], Float[LinearOperator, "... P M"]],

def rmatmul(
self: Float[LinearOperator, "... M N"],
rhs: Union[Float[Tensor, "... P M"], Float[Tensor, "... M"], Float[LinearOperator, "... P M"]],
) -> Union[Float[Tensor, "... P N"], Float[Tensor, "N"], Float[LinearOperator, "... P N"]]:
res = fktorch.gemkm(rhs.contiguous(), [op.to_dense() for op in self.linear_ops])
return res
Expand Down

0 comments on commit 8e62107

Please sign in to comment.