Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
luisenp committed Dec 5, 2022
1 parent bfa60c7 commit 83b19b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/optimizer/nonlinear/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ def _atb_impl(self) -> torch.Tensor:
def Av(self, v):
pass

def diagonal_scaling(self, v):
pass

class MockCostFunction(th.CostFunction):
def __init__(self, optim_vars, cost_weight):
super().__init__(cost_weight)
Expand Down

0 comments on commit 83b19b0

Please sign in to comment.