Skip to content

Commit 69eb204

Browse files
committed
Added batch as parameter
1 parent 36eaaf0 commit 69eb204

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pylops/torchoperator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ def _register_torchop(self, batch: bool):
7878
# choose _matvec and _rmatvec
7979
self._hmatvec: Callable
8080
self._hrmatvec: Callable
81-
82-
if batch:
81+
if not batch:
8382
self._hmatvec = lambda x: self.Op @ x
8483
self._hrmatvec = lambda x: self.Op.H @ x
8584
else:

0 commit comments

Comments
 (0)