SynapseConstructor

class SynapseConstructor(*args, **kwargs)[source]

Bases: Protocol

Common constructor for synapses, used by Connection objects.

Parameters:
  • shape (tuple[int, ...] | int) – shape of the group of synapses, excluding the batch dim.

  • step_time (float) – length of a simulation time step, in \(ms\).

  • delay (float) – maximum supported delay, in \(ms\).

  • batch_size (int) – size of the batch dimension.

Returns:

newly constructed synapse.

Return type:

Synapse