aeff109058b43a6c854621743ab7aaced5469130,nn_dataflow/LoopBlocking.py,,skip,#Any#Any#,38

Before Change


        // Outermost loop should not equal to the innermost loop of the outer
        // level.
        if nt_loop_num > 1:
            outermost_nt_loop = ord_.index(nt_loop_num - 1)
            if outermost_nt_loop == outer_level_innermost_nt_loop:
                return True
            outer_level_innermost_nt_loop = ord_.index(0)

After Change


    for t_, ord_ in itertools.izip_longest(bl_ts, bl_ords, fillvalue=None):

        // Non-trivial loops.
        nt_loops = [lpe for lpe in range(le.NUM) if t_[lpe] > 1]

        // Innermost non-trivial loops.
        try:
            innermost_nt_loop = min(nt_loops, key=lambda lpe, o=ord_: o[lpe])
        except (ValueError, TypeError):
            // All trivial loops, or order is None type (last level).
            innermost_nt_loop = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: stanford-mast/nn_dataflow
Commit Name: aeff109058b43a6c854621743ab7aaced5469130
Time: 2017-06-28
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlocking.py
Class Name:
Method Name: skip


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: d0bfaa2292ccc5acd63c2374f03a6ef92bfd851c
Time: 2017-12-09
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: select_best_ip


Project Name: mil-tokyo/webdnn
Commit Name: 35ef266b72aba775f4f6cd9a47519b6bebae07e4
Time: 2018-01-25
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/graph/variable.py
Class Name: Variable
Method Name: combine_axes