Skip to content

Utils Memory

Module: spectralbridge.utils.memory.

Memory management helpers for pipeline stages.

API glossary ยท Workflow / scientific context

Signatures and documentation below are collected from the current source. Advanced objects are not newly declared stable by inclusion here.

Audience: advanced.

clean_memory

clean_memory(label: str = '') -> None

Force garbage collection and log memory usage. Called between major pipeline stages to keep RAM low.