Skip to content

Commit 16b6af7

Browse files
committed
fix: added memory_usage to solvers as it is now required in pylops solvers
1 parent b9b1ca8 commit 16b6af7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pylops_mpi/optimization/cls_basic.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def _print_step(self, x: Union[DistributedArray, StackedDistributedArray]) -> No
5151
print(msg)
5252
sys.stdout.flush()
5353

54+
def memory_usage(self) -> None:
55+
pass
56+
5457
def setup(
5558
self,
5659
y: Union[DistributedArray, StackedDistributedArray],
@@ -299,6 +302,9 @@ def _print_step(self, x: Union[DistributedArray, StackedDistributedArray]) -> No
299302
print(msg)
300303
sys.stdout.flush()
301304

305+
def memory_usage(self) -> None:
306+
pass
307+
302308
def setup(self,
303309
y: Union[DistributedArray, StackedDistributedArray],
304310
x0: Union[DistributedArray, StackedDistributedArray],

0 commit comments

Comments
 (0)