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



    // read inner product parameters
    inner_product_param = getattr(layer_parm, "inner_product_param", None)
    parms = {}
    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: 3

Non-data size: 7

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: estnltk/estnltk
Commit Name: 318a0cf284882e3be97155751821e9ab83924a4b
Time: 2015-07-03
Author: karl.valliste@gmail.com
File Name: estnltk/prettyprinter/prettyprinter.py
Class Name: PrettyPrinter
Method Name: render


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