Skip to content

Commit

Permalink
minor: added __call__ to TorchOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Feb 27, 2023
1 parent 4428dda commit fee227f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pylops/torchoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def __init__(
)
self.Top = _TorchOperator.apply

def __call__(self, x):
return self.apply(x)

def apply(self, x: TensorTypeLike) -> TensorTypeLike:
"""Apply forward pass to input vector
Expand Down

0 comments on commit fee227f

Please sign in to comment.