superneuromat.SNN.release_mem#
- SNN.release_mem()[source]#
Delete internal variables created during computation. Doesn’t delete model.
This is a low-level function and has few safeguards. Use with caution. It will call The del statement on all numpy internal state variables in
_internal_vars
.Warning
release_mem()
should be called at most once aftersetup()
orsimulate()
. Do not call it beforesetup()
or twice in a row.This function may alleviate memory leaks in some cases.