Skip to content

Commit

Permalink
Fix L2 proj test
Browse files Browse the repository at this point in the history
  • Loading branch information
frankong committed Oct 30, 2019
1 parent 4281386 commit fded150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_prox.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_L2Proj(self):
shape = [6]
epsilon = 1.0
P = prox.L2Proj(shape, epsilon)
x = util.randn(shape)
x = util.randn(shape) * 10
y = P(1.0, x)
npt.assert_allclose(y, x / np.linalg.norm(x.ravel()))

Expand Down

0 comments on commit fded150

Please sign in to comment.