Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitSolomonPrinceton committed Sep 16, 2024
1 parent 4ea58cb commit d36885d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cvxtorch/torch_numerics/affine/upper_tri.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import torch
from cvxpy.expressions.expression import Expression


def torch_numeric(expr: Expression, values: list[torch.Tensor]) -> torch.Tensor:
inds = torch.triu_indices(row=values[0].shape[0], col=values[0].shape[1], offset=1)
# This can be simplified as `return values[0][*inds]`. However, this doesn't work on <3.11.
Expand Down

0 comments on commit d36885d

Please sign in to comment.