Skip to content

Commit

Permalink
Fixed max_eig device placement in LinearLeastSquares.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankong committed Aug 22, 2018
1 parent aeb5c8f commit 0ed2b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigpy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ def _init(self):

elif isinstance(self.alg, GradientMethod):
try:
self.alg.alpha = 1 / self.max_eig_app.run()
self.alg.alpha = 1 / util.move(self.max_eig_app.run())
except AttributeError:
pass
elif isinstance(self.alg, PrimalDualHybridGradient):
try:
self.alg.sigma = 1 / self.max_eig_app.run()
self.alg.sigma = 1 / util.move(self.max_eig_app.run())
self.alg.tau = 1
except AttributeError:
pass
Expand Down

0 comments on commit 0ed2b48

Please sign in to comment.