We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NashMTL
1 parent 4dcf732 commit 3c35de7Copy full SHA for 3c35de7
src/torchjd/aggregation/nash_mtl.py
@@ -148,6 +148,9 @@ def _solve_optimization(self, gtg: np.ndarray) -> np.ndarray:
148
try:
149
self.prob.solve(solver=cp.ECOS, warm_start=True, max_iters=100)
150
except Exception:
151
+ # On macOS, this can happen with a cvxpy.error.SolverError: Solver 'ECOS' failed.
152
+ # No idea why. The corresponding matrix is of shape [9, 11] with rank 5.
153
+ # Maybe other exceptions can happen in other cases.
154
self.alpha_param.value = self.prvs_alpha_param.value
155
156
if self._stop_criteria(gtg, alpha_t):
0 commit comments