Basic operators

class nengo_dl.operators.ResetBuilder(ops, signals)[source]

Build a group of Reset operators.

build_step(signals)[source]

This function builds whatever computations need to be executed in each simulation timestep.

Parameters:
signals : signals.SignalDict

mapping from Signal to tf.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

class nengo_dl.operators.CopyBuilder(ops, signals)[source]

Build a group of Copy operators.

build_step(signals)[source]

This function builds whatever computations need to be executed in each simulation timestep.

Parameters:
signals : signals.SignalDict

mapping from Signal to tf.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

class nengo_dl.operators.ElementwiseIncBuilder(ops, signals)[source]

Build a group of ElementwiseInc operators.

build_step(signals)[source]

This function builds whatever computations need to be executed in each simulation timestep.

Parameters:
signals : signals.SignalDict

mapping from Signal to tf.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

class nengo_dl.operators.DotIncBuilder(ops, signals)[source]

Build a group of DotInc operators.

build_step(signals)[source]

This function builds whatever computations need to be executed in each simulation timestep.

Parameters:
signals : signals.SignalDict

mapping from Signal to tf.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

class nengo_dl.operators.SimPyFuncBuilder(ops, signals)[source]

Build a group of SimPyFunc operators.

build_step(signals)[source]

This function builds whatever computations need to be executed in each simulation timestep.

Parameters:
signals : signals.SignalDict

mapping from Signal to tf.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

class nengo_dl.tensor_node.SimTensorNodeBuilder(ops, signals)[source]

Builds a SimTensorNode operator into a NengoDL model.

build_step(signals)[source]

This function builds whatever computations need to be executed in each simulation timestep.

Parameters:
signals : signals.SignalDict

mapping from Signal to tf.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