Skip to content

Commit

Permalink
Format code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
jameschapman19 authored and github-actions[bot] committed Sep 4, 2023
1 parent f8693ed commit fd59430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxtorch/operators/tvl1_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def gradient(self, x):
gradients[d, ...] = F.pad(
torch.diff(x, dim=d, n=1), pad=get_padding_tuple(d, x.dim())
)
gradients[:-1] *= (1.0 - self.l1_ratio)
gradients[:-1] *= 1.0 - self.l1_ratio
gradients[-1] = self.l1_ratio * x
return gradients

Expand Down

0 comments on commit fd59430

Please sign in to comment.