Skip to content

Commit

Permalink
Enable jit on pad and crop operators
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Feb 25, 2024
1 parent 2e92b2e commit 203b3c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scico/functional/_tvnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def prox(self, v: Array, lam: float = 1.0, **kwargs) -> Array:
if self.W is None or self.W.shape[1] != w_input_shape:
self.W = self._haar_operator(ndims, w_input_shape, v.dtype)
if not self.circular:
P = Pad(v.shape, pad_width=(((0, 1),) * ndims), mode="edge")
P = Pad(v.shape, pad_width=(((0, 1),) * ndims), mode="edge", jit=True)
self.WP = self.W @ P
C = Crop(crop_width=(((0, 1),) * ndims), input_shape=w_input_shape)
C = Crop(crop_width=(((0, 1),) * ndims), input_shape=w_input_shape, jit=True)
self.CWT = C @ self.W.T

if self.circular:
Expand Down

0 comments on commit 203b3c9

Please sign in to comment.