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

Before Change


        if (cnum - len(path)) == -1:
            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


            idx_result = output_subscript
        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: 5

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: kymatio/kymatio
Commit Name: 5c6c50274c11ecbf9be54052394922fabde80923
Time: 2020-02-18
Author: edouard.oyallon@lip6.fr
File Name: kymatio/scattering2d/core/scattering2d.py
Class Name:
Method Name: scattering2d


Project Name: oddt/oddt
Commit Name: 09724678646f73ab1780c550c92a737affa326d2
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol