CSRLinear

CSRLinear#

class brainpy.dnn.CSRLinear(conn, weight, sharding=None, mode=None, name=None, method=None, transpose=True)[source]#

Synaptic matrix multiplication with CSR sparse computation.

It performs the computation of:

\[y = x @ M\]

where \(y\) is the postsynaptic value, \(x\) the presynaptic value, \(M\) the synaptic weight using a CSR sparse matrix.

Parameters:
update(x)[source]#

The function to specify the updating rule.