a2afaa41a13548806ef624f1530d2ae8912bb818,opt_einsum/paths.py,,greedy,#,108

Before Change


            // always initially ignore outer products, but save if no inners can be found
            if input_sets[positions[0]].isdisjoint(input_sets[positions[1]]):
                outer_positions.append(positions)
                continue

            result = _parse_possible_contraction(positions, input_sets, output_set, idx_dict,
                                                 memory_limit, path_cost, naive_cost)
            if result is not None:

After Change


        // Next iteration only compute contractions with the new tensor
        input_sets = best[2]
        new_tensor_pos = len(input_sets) - 1
        comb_iter = ((i, new_tensor_pos) for i in range(new_tensor_pos))

        // Update path and total cost
        path.append(best[1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dgasmith/opt_einsum
Commit Name: a2afaa41a13548806ef624f1530d2ae8912bb818
Time: 2018-02-12
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/paths.py
Class Name:
Method Name: greedy


Project Name: pyprob/pyprob
Commit Name: 22b907cc151f4ae9ec9ff95e2438836ef5660b60
Time: 2020-08-06
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/model.py
Class Name: Model
Method Name: posterior


Project Name: pyprob/pyprob
Commit Name: 22b907cc151f4ae9ec9ff95e2438836ef5660b60
Time: 2020-08-06
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/model.py
Class Name: Model
Method Name: _traces