ef3b051ba0dc69a02f0d7aa8e955bea26b334f51,spynnaker/pyNN/utilities/bit_field_utilities.py,,get_estimated_sdram_for_bit_field_region,#Any#Any#,46

Before Change



            // Get the number of likely vertices
            n_machine_vertices = int(math.ceil(
                float(incoming_edge.pre_vertex.n_atoms) /
                float(max_atoms)))
            n_atoms_per_machine_vertex = int(math.ceil(
                float(incoming_edge.pre_vertex.n_atoms) /
                n_machine_vertices))
            if isinstance(edge_pre_vertex, DelayExtensionVertex):
                n_atoms_per_machine_vertex *= \
                    edge_pre_vertex.n_delay_stages
            n_words_for_atoms = int(math.ceil(
                n_atoms_per_machine_vertex / BIT_IN_A_WORD))
            sdram += (
                (ELEMENTS_USED_IN_EACH_BIT_FIELD + (

After Change


            n_machine_vertices = len(slices)

            // TODO im sure this can be merged into the max function. but meh
            slice_atoms = list()
            for vertex_slice in slices:
                slice_atoms.append(vertex_slice.n_atoms)
            n_atoms_per_machine_vertex = max(slice_atoms)

            if isinstance(incoming_edge.pre_vertex, DelayExtensionVertex):
                n_atoms_per_machine_vertex *= \
                    incoming_edge.pre_vertex.n_delay_stages
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: ef3b051ba0dc69a02f0d7aa8e955bea26b334f51
Time: 2020-09-30
Author: alan.barry.stokes@gmail.com
File Name: spynnaker/pyNN/utilities/bit_field_utilities.py
Class Name:
Method Name: get_estimated_sdram_for_bit_field_region


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: ef3b051ba0dc69a02f0d7aa8e955bea26b334f51
Time: 2020-09-30
Author: alan.barry.stokes@gmail.com
File Name: spynnaker/pyNN/utilities/bit_field_utilities.py
Class Name:
Method Name: get_estimated_sdram_for_bit_field_region


Project Name: deepinsight/insightface
Commit Name: 74cdf6d00ff239ea6559812fa157bd138e2578cb
Time: 2018-07-09
Author: guojia@gmail.com
File Name: SSH/test.py
Class Name:
Method Name:


Project Name: deepinsight/insightface
Commit Name: eb6aea6e708e0fd87ca6e168a88c60a6fad570c9
Time: 2018-07-09
Author: guojia@gmail.com
File Name: SSH/test.py
Class Name:
Method Name: