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

Before Change


                max_atoms = incoming_edge.pre_vertex.n_atoms

            // 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))

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: 3

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: Qiskit/qiskit-aqua
Commit Name: 2623e2cc3a76b7e7c7c4ea95f93077c6270cd05c
Time: 2019-02-15
Author: shaohan.hu@ibm.com
File Name: test/test_simon.py
Class Name: TestSimon
Method Name: test_simon


Project Name: deepfakes/faceswap
Commit Name: 1daa7dc6f6df2cb22af40e641d93e808c830e774
Time: 2020-09-23
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/display_graph.py
Class Name: GraphBase
Method Name: lines_style