43e740fa6ea915e7143b9e58a231042d22ab5587,opt_einsum/contract.py,,contract_path,#,14

Before Change


            idx_result = output_subscript
        else:
            sort_result = [(dimension_dict[ind], ind) for ind in out_inds]
            idx_result = "".join([x[1] for x in sorted(sort_result)])

        shp_result = parser.find_output_shape(tmp_inputs, tmp_shapes, idx_result)

After Change


        else:
            // use tensordot order to minimize transpositions
            all_input_inds = "".join(tmp_inputs)
            idx_result = "".join(sorted(out_inds, key=all_input_inds.find))

        shp_result = parser.find_output_shape(tmp_inputs, tmp_shapes, idx_result)

        input_list.append(idx_result)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dgasmith/opt_einsum
Commit Name: 43e740fa6ea915e7143b9e58a231042d22ab5587
Time: 2018-08-09
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name:
Method Name: contract_path


Project Name: google/nucleus
Commit Name: 1f3dcd25bcbefcda72218a76f0cb609460bc9b98
Time: 2019-05-03
Author: no-reply@google.com
File Name: nucleus/examples/ascii_pileup.py
Class Name:
Method Name: main


Project Name: mittagessen/kraken
Commit Name: d8abd944a8b95b36ead150abbf6b42a9276bf660
Time: 2017-05-02
Author: mittagessen@l.unchti.me
File Name: kraken/train.py
Class Name: GroundTruthContainer
Method Name: repartition