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)
input_list.append(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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
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: fxsjy/jieba
Commit Name: 751ff35eb5faa6460038bb20a1ef6bfcf29f440a
Time: 2014-10-31
Author: abcdoyle888@gmail.com
File Name: jieba/analyse/__init__.py
Class Name:
Method Name: extract_tags
Project Name: explosion/prodigy-recipes
Commit Name: 06e5e82f9e649dae5207e6ff0e847134b3b2a836
Time: 2019-12-14
Author: ines@ines.io
File Name: ner/ner_silver_to_gold.py
Class Name:
Method Name: ner_silver_to_gold