spynnaker.pyNN.models.neuron.synapse_io package

Submodules

spynnaker.pyNN.models.neuron.synapse_io.abstract_synapse_io module

class spynnaker.pyNN.models.neuron.synapse_io.abstract_synapse_io.AbstractSynapseIO[source]

Bases: object

get_block_n_bytes(max_row_length, n_rows)[source]

Get the number of bytes in a block given the max row length and number of rows

get_max_row_info(synapse_info, post_vertex_slice, n_delay_stages, population_table, machine_time_step, in_edge)[source]

Get the information about the maximum lengths of delayed and undelayed rows in bytes (including header), words (without header) and number of synapses

get_maximum_delay_supported_in_ms(machine_time_step)[source]

Get the maximum delay supported by the synapse representation before extensions are required, or None if any delay is supported

get_synapses(synapse_info, pre_slices, pre_slice_index, post_slices, post_slice_index, pre_vertex_slice, post_vertex_slice, n_delay_stages, population_table, n_synapse_types, weight_scales, machine_time_step, app_edge, machine_edge)[source]

Get the synapses as an array of words for non-delayed synapses and an array of words for delayed synapses

read_synapses(synapse_info, pre_vertex_slice, post_vertex_slice, max_row_length, delayed_max_row_length, n_synapse_types, weight_scales, data, delayed_data, n_delay_stages, machine_time_step)[source]

Read the synapses for a given projection synapse information object out of the given data

spynnaker.pyNN.models.neuron.synapse_io.max_row_info module

class spynnaker.pyNN.models.neuron.synapse_io.max_row_info.MaxRowInfo(undelayed_max_n_synapses, delayed_max_n_synapses, undelayed_max_bytes, delayed_max_bytes, undelayed_max_words, delayed_max_words)[source]

Bases: object

Information about the maximums for rows in a synaptic matrix.

delayed_max_bytes
delayed_max_n_synapses
delayed_max_words
undelayed_max_bytes
undelayed_max_n_synapses
undelayed_max_words

spynnaker.pyNN.models.neuron.synapse_io.synapse_io_row_based module

class spynnaker.pyNN.models.neuron.synapse_io.synapse_io_row_based.SynapseIORowBased[source]

Bases: spynnaker.pyNN.models.neuron.synapse_io.abstract_synapse_io.AbstractSynapseIO

A SynapseRowIO implementation that uses a row for each source neuron, where each row consists of a fixed region, a plastic region, and a fixed-plastic region (this is the bits of the plastic row that don’t actually change). The plastic region structure is determined by the synapse dynamics of the connector.

get_block_n_bytes(max_row_length, n_rows)[source]

Get the number of bytes in a block given the max row length and number of rows

get_max_row_info(synapse_info, post_vertex_slice, n_delay_stages, population_table, machine_time_step, in_edge)[source]

Get the information about the maximum lengths of delayed and undelayed rows in bytes (including header), words (without header) and number of synapses

get_maximum_delay_supported_in_ms(machine_time_step)[source]

Get the maximum delay supported by the synapse representation before extensions are required, or None if any delay is supported

get_synapses(synapse_info, pre_slices, pre_slice_index, post_slices, post_slice_index, pre_vertex_slice, post_vertex_slice, n_delay_stages, population_table, n_synapse_types, weight_scales, machine_time_step, app_edge, machine_edge)[source]

Get the synapses as an array of words for non-delayed synapses and an array of words for delayed synapses

read_synapses(synapse_info, pre_vertex_slice, post_vertex_slice, max_row_length, delayed_max_row_length, n_synapse_types, weight_scales, data, delayed_data, n_delay_stages, machine_time_step)[source]

Read the synapses for a given projection synapse information object out of the given data

Module contents

class spynnaker.pyNN.models.neuron.synapse_io.AbstractSynapseIO[source]

Bases: object

get_block_n_bytes(max_row_length, n_rows)[source]

Get the number of bytes in a block given the max row length and number of rows

get_max_row_info(synapse_info, post_vertex_slice, n_delay_stages, population_table, machine_time_step, in_edge)[source]

Get the information about the maximum lengths of delayed and undelayed rows in bytes (including header), words (without header) and number of synapses

get_maximum_delay_supported_in_ms(machine_time_step)[source]

Get the maximum delay supported by the synapse representation before extensions are required, or None if any delay is supported

get_synapses(synapse_info, pre_slices, pre_slice_index, post_slices, post_slice_index, pre_vertex_slice, post_vertex_slice, n_delay_stages, population_table, n_synapse_types, weight_scales, machine_time_step, app_edge, machine_edge)[source]

Get the synapses as an array of words for non-delayed synapses and an array of words for delayed synapses

read_synapses(synapse_info, pre_vertex_slice, post_vertex_slice, max_row_length, delayed_max_row_length, n_synapse_types, weight_scales, data, delayed_data, n_delay_stages, machine_time_step)[source]

Read the synapses for a given projection synapse information object out of the given data

class spynnaker.pyNN.models.neuron.synapse_io.SynapseIORowBased[source]

Bases: spynnaker.pyNN.models.neuron.synapse_io.abstract_synapse_io.AbstractSynapseIO

A SynapseRowIO implementation that uses a row for each source neuron, where each row consists of a fixed region, a plastic region, and a fixed-plastic region (this is the bits of the plastic row that don’t actually change). The plastic region structure is determined by the synapse dynamics of the connector.

get_block_n_bytes(max_row_length, n_rows)[source]

Get the number of bytes in a block given the max row length and number of rows

get_max_row_info(synapse_info, post_vertex_slice, n_delay_stages, population_table, machine_time_step, in_edge)[source]

Get the information about the maximum lengths of delayed and undelayed rows in bytes (including header), words (without header) and number of synapses

get_maximum_delay_supported_in_ms(machine_time_step)[source]

Get the maximum delay supported by the synapse representation before extensions are required, or None if any delay is supported

get_synapses(synapse_info, pre_slices, pre_slice_index, post_slices, post_slice_index, pre_vertex_slice, post_vertex_slice, n_delay_stages, population_table, n_synapse_types, weight_scales, machine_time_step, app_edge, machine_edge)[source]

Get the synapses as an array of words for non-delayed synapses and an array of words for delayed synapses

read_synapses(synapse_info, pre_vertex_slice, post_vertex_slice, max_row_length, delayed_max_row_length, n_synapse_types, weight_scales, data, delayed_data, n_delay_stages, machine_time_step)[source]

Read the synapses for a given projection synapse information object out of the given data