Skip to content

Commit 36eaaf0

Browse files
committed
Updated torchoperator.py
1 parent e8bb3d0 commit 36eaaf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylops/torchoperator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def __init__(
7676

7777
def _register_torchop(self, batch: bool):
7878
# choose _matvec and _rmatvec
79-
self._hmatvec = None
80-
self._hrmatvec = None
79+
self._hmatvec: Callable
80+
self._hrmatvec: Callable
8181

8282
if batch:
8383
self._hmatvec = lambda x: self.Op @ x

0 commit comments

Comments
 (0)