fast_lisa_subtraction.utils.utility module

fast_lisa_subtraction.utils.utility.free_gpu_memory()[source]

Free cached GPU memory for CuPy and PyTorch backends.

This is a best-effort cleanup that silently ignores missing backends or cleanup failures.

Return type:

None

fast_lisa_subtraction.utils.utility.set_seed(seed)[source]

Set RNG seeds for reproducibility across common backends.

Parameters:

seed (int) – Seed value to set for Python’s random, NumPy, CuPy (if available), and PyTorch.

Return type:

None