superneuromat.SNN.sparse#

property SNN.sparse[source]#

The user-requested sparsity setting for the SNN

When creating an SNN, the sparse parameter is 'auto' by default.

Parameters:

sparse (bool | str | Any) –

If one of 1, '1', True, 'true', or 'sparse', the SNN will be internally represented using a sparse representation.

If one of 0, '0', False, 'false', or 'dense', the SNN will be internally represented using a dense representation.

If 'auto', the sparsity will be determined at setup-time via recommend_sparsity().

Returns:

Returns True, False, or 'auto'.

Return type:

bool | str