Skip to content

Commit fee227f

Browse files
committed
minor: added __call__ to TorchOperator
1 parent 4428dda commit fee227f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pylops/torchoperator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def __init__(
8282
)
8383
self.Top = _TorchOperator.apply
8484

85+
def __call__(self, x):
86+
return self.apply(x)
87+
8588
def apply(self, x: TensorTypeLike) -> TensorTypeLike:
8689
"""Apply forward pass to input vector
8790

0 commit comments

Comments
 (0)