Skip to content

Commit fd59430

Browse files
jameschapman19github-actions[bot]
authored andcommitted
Format code with black
1 parent f8693ed commit fd59430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxtorch/operators/tvl1_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def gradient(self, x):
7676
gradients[d, ...] = F.pad(
7777
torch.diff(x, dim=d, n=1), pad=get_padding_tuple(d, x.dim())
7878
)
79-
gradients[:-1] *= (1.0 - self.l1_ratio)
79+
gradients[:-1] *= 1.0 - self.l1_ratio
8080
gradients[-1] = self.l1_ratio * x
8181
return gradients
8282

0 commit comments

Comments
 (0)