brainpy.math.delayvars.LengthDelay#

class brainpy.math.delayvars.LengthDelay(delay_target, delay_len, initial_delay_data=None, name=None)[source]#

Delay variable which has a fixed delay length.

Parameters
  • delay_target (int, sequence of int) – The initial delay data.

  • delay_len (int) – The maximum delay length.

  • initial_delay_data (Tensor) – The delay data.

  • name (str) – The delay object name.

See also

TimeDelay

__init__(delay_target, delay_len, initial_delay_data=None, name=None)[source]#

Methods

__init__(delay_target, delay_len[, ...])

load_states(filename[, verbose])

Load the model states.

nodes([method, level, include_self])

Collect all children nodes.

register_implicit_nodes(nodes)

register_implicit_vars(variables)

reset(delay_target[, delay_len, ...])

save_states(filename[, variables])

Save the model states.

train_vars([method, level, include_self])

The shortcut for retrieving all trainable variables.

unique_name([name, type_])

Get the unique name for this object.

update(value)

vars([method, level, include_self])

Collect all variables in this node and the children nodes.

Attributes

name