965277c1763c0d65f1de2fe00f8a617b44fe9804,dlpy/model_conversion/sas_caffe_parse.py,,caffe_full_connect_layer,#Any#Any#,616

Before Change


    if (inner_product_param is not None):
        for ii in range(len(dstruct)):
            if (dstruct[ii]["repeated"]):
                code_str = (dstruct[ii]["field"] + "=extract_repeated_attr" +
                            "(inner_product_param,\"" + dstruct[ii]["field"] + "\")")
            else:
                code_str = (dstruct[ii]["field"] + "=extract_attr" +
                            "(inner_product_param,\"" + dstruct[ii]["field"] + "\")")

            exec(code_str)
    else:
        raise CaffeParseError("No inner_product parameters given")

    // define parameters needed by SAS fully-connected layer

After Change


    if inner_product_param is not None:
        for ii in range(len(dstruct)):
            if (dstruct[ii]["repeated"]):
                code_str = ("extract_repeated_attr" + "(inner_product_param,\"" + 
                            dstruct[ii]["field"] + "\")")
            else:
                code_str = ("extract_attr" + "(inner_product_param,\"" + 
                            dstruct[ii]["field"] + "\")")

            parms[dstruct[ii]["field"]] = eval(code_str)
    else:
        raise CaffeParseError("No inner_product parameters given")

    // define parameters needed by SAS fully-connected layer
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: sassoftware/python-dlpy
Commit Name: 965277c1763c0d65f1de2fe00f8a617b44fe9804
Time: 2019-04-01
Author: docair@dlgrd008.unx.sas.com
File Name: dlpy/model_conversion/sas_caffe_parse.py
Class Name:
Method Name: caffe_full_connect_layer


Project Name: uqfoundation/mystic
Commit Name: a923db7d2a26ab5c91566cc206d191bf56af4d66
Time: 2017-06-24
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: tests/test_solver_compare.py
Class Name:
Method Name: test_compare


Project Name: scipy/scipy
Commit Name: fafdd6001a8259f1408bc5f2c2cb91e5eb96c6ca
Time: 2020-08-05
Author: 44255917+swallan@users.noreply.github.com
File Name: benchmarks/benchmarks/stats.py
Class Name: ContinuousFitAnalyticalMLEOverride
Method Name: setup


Project Name: sassoftware/python-dlpy
Commit Name: 965277c1763c0d65f1de2fe00f8a617b44fe9804
Time: 2019-04-01
Author: docair@dlgrd008.unx.sas.com
File Name: dlpy/model_conversion/sas_caffe_parse.py
Class Name:
Method Name: caffe_residual_layer


Project Name: uqfoundation/mystic
Commit Name: a923db7d2a26ab5c91566cc206d191bf56af4d66
Time: 2017-06-24
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: tests/test_solver_compare.py
Class Name:
Method Name: test_solvers