Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
lezcano committed Nov 14, 2021
1 parent 8eb7089 commit 754144e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geotorch/so.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def uniform_init_(tensor):
# first column by -1 (does not change the measure)
if n == k:
mask = (torch.det(q) >= 0.0).float()
mask[mask == 0.] = -1.
mask[mask == 0.0] = -1.0
mask = mask.unsqueeze(-1)
q[..., 0] *= mask
tensor.copy_(q)
Expand Down

0 comments on commit 754144e

Please sign in to comment.