Neuron types¶
Build Nengo neuron types into the TensorFlow graph.
-
class
nengo_dl.neurons.SimNeuronsBuilder(ops, signals)[source]¶ Builds a group of
SimNeuronsoperators.Calls the appropriate sub-build class for the different neuron types.
Attributes: - TF_NEURON_IMPL : list of
NeuronType the neuron types that have a custom implementation
-
build_step(signals)[source]¶ This function builds whatever computations need to be executed in each simulation timestep.
Parameters: - signals :
signals.SignalDict mapping from
Signaltotf.Tensor(updated by operations)
Returns: - list of ``tf.Tensor``, optional
if not None, the returned tensors correspond to outputs with possible side-effects, i.e. computations that need to be executed in the tensorflow graph even if their output doesn’t appear to be used
- signals :
- TF_NEURON_IMPL : list of
-
class
nengo_dl.neurons.GenericNeuronBuilder(ops, signals)[source]¶ Builds all neuron types for which there is no custom Tensorflow implementation.
Notes
These will be executed as native Python functions, requiring execution to move in and out of Tensorflow. This can significantly slow down the simulation, so any performance-critical neuron models should consider adding a custom Tensorflow implementation for their neuron type instead.
-
class
nengo_dl.neurons.RectifiedLinearBuilder(ops, signals)[source]¶ Build a group of
RectifiedLinearneuron operators.
-
class
nengo_dl.neurons.SigmoidBuilder(ops, signals)[source]¶ Build a group of
Sigmoidneuron operators.