999fd2807c746ab0c203f1ec20adcdd14be7da89,nn_dataflow/Partition.py,,get_ofmap_layout,#Any#Any#Any#Any#,308

Before Change


        if pae not in [pe.OUTP, pe.OFMP, pe.BATP]:
            ofmap_pdims[pe.BATP] = [x * y for x, y in zip(ofmap_pdims[pe.BATP],
                                                          ofmap_pdims[pae])]
            ofmap_pdims[pae] = [1, 1]

    ofmap_part = PartitionScheme(order=ofmap_order, pdims=ofmap_pdims)
    assert all(od <= omrd for od, omrd in zip(ofmap_part.dim(), dim_omr)), \
            "Partition ofmap: ofmap partitioning {} is invalid within " \

After Change


            // Ofmap dimension > computation dimension. Extend.
            ext = od // pd
            // Apply the extension to the top level.
            top_pae = next(pae for pae in ofmap_order if pae in ofmap_paes)
            ofmap_pdims[top_pae][di] *= ext
        else:
            // Computation dimension >= ofmap dimension, shrink.
            // Go from bottom to top. Keep bottom (first) levels unchanged, and
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: stanford-mast/nn_dataflow
Commit Name: 999fd2807c746ab0c203f1ec20adcdd14be7da89
Time: 2017-07-13
Author: mgao12@stanford.edu
File Name: nn_dataflow/Partition.py
Class Name:
Method Name: get_ofmap_layout


Project Name: theislab/scanpy
Commit Name: 315859c5586116434ea3b7ce97512a5e2a1030e2
Time: 2017-02-06
Author: flying-sheep@web.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw


Project Name: theislab/scanpy
Commit Name: 49899ef69309d2a0ab6ad785f455eb53a8443a06
Time: 2017-02-08
Author: f.alex.wolf@gmx.de
File Name: scanpy/exs/builtin.py
Class Name:
Method Name: moignard15_raw


Project Name: matplotlib/matplotlib
Commit Name: 4818c2783c300729b32f1340d2c06510ff6aa363
Time: 2018-05-07
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/axes/_subplots.py
Class Name: SubplotBase
Method Name: __reduce__