Cell¶
- class Cell(layer: Layer, connection: Connection, neuron: Neuron, names: tuple[str, str])[source]¶
Bases:
Module,ObservablePair of a Connection and Neuron produced used for training.
- Parameters:
- property connection: Connection¶
Connection submodule.
- Returns:
composed connection.
- Return type:
- forward() None[source]¶
Forward call.
- Raises:
RuntimeError – Cell cannot have its forward method called.
- local_remap(attr: str) tuple[tuple[Any, ...], dict[str, Any]][source]¶
Locally remaps an attribute for pooled monitors.
This method should alias any local attributes being referenced as required. The callback
realigngiven on initialization will accept the output of this as positional and keyword arguments.
- property postspike: Tensor¶
Action potentials last generated.
Alias for
neuron.spike.- Returns:
membrane voltages.
- Return type:
- property postvoltage: Tensor¶
Membrane voltages in millivolts.
Alias for
neuron.voltage.- Returns:
membrane voltages.
- Return type:
- property precurrent: Tensor¶
Currents from the synapse at the time last used by the connection.
Alias for
connection.syncurrent.- Returns:
delay-offset synaptic currents.
- Return type:
- property prespike: Tensor¶
Spikes to the synapse at the time last used by the connection.
Alias for
connection.synspike.- Returns:
delay-offset synaptic spikes.
- Return type: