d852c93925137c7bfcc7c78559f1b0e66acbdabb,convert_models.py,,convert_pt2pt,#Any#Any#Any#Any#Any#Any#Any#,771

Before Change


    if src_model.startswith("oth_proxyless"):
        src1 = list(filter(re.compile("^(first_conv|feature_mix_layer)").search, src_param_keys))
        src1n = [key for key in src_param_keys if key not in src1]
        dst1 = list(filter(re.compile("^(features.init_block|features.final_block)").search, dst_param_keys))
        dst1n = [key for key in dst_param_keys if key not in dst1]
        src1.sort()
        dst1.sort()
        src_param_keys = src1 + src1n
        dst_param_keys = dst1 + dst1n
    elif src_model.startswith("oth_dla"):
        src1 = list(filter(re.compile("\.project").search, src_param_keys))
        src1n = [key for key in src_param_keys if key not in src1]
        src_param_keys = src1 + src1n

After Change


        del src_param_keys[5]
        src_param_keys.insert(0, src1)
        src2 = src_param_keys[-3]
        del src_param_keys[-3]
        src_param_keys.insert(-7, src2)
    elif src_model.startswith("oth_dla"):
        src1 = list(filter(re.compile("\.project").search, src_param_keys))
        src1n = [key for key in src_param_keys if key not in src1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: osmr/imgclsmob
Commit Name: d852c93925137c7bfcc7c78559f1b0e66acbdabb
Time: 2019-04-11
Author: osemery@gmail.com
File Name: convert_models.py
Class Name:
Method Name: convert_pt2pt


Project Name: streamlit/streamlit
Commit Name: 81460887a6dc118719168c98a0d7543b758d2040
Time: 2018-01-17
Author: adrien.g.treuille@gmail.com
File Name: tiny_notebook/protobuf/__init__.py
Class Name:
Method Name:


Project Name: mne-tools/mne-python
Commit Name: 9f231cfa8416b5bfe06dc996fa6d50c87b488d37
Time: 2021-01-07
Author: larson.eric.d@gmail.com
File Name: examples/inverse/plot_multidict_reweighted_tfmxne.py
Class Name:
Method Name: