41a1d4a6f6422f5bc403981189c3001e2e391c70,dlpy/applications.py,,VGG16,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,613
Before Change
act="relu", dropout=0.5),
srcLayers=["pool5"])
model._retrieve_("addlayer", model=model_name, name="fc7",
layer=dict(type="fullconnect", n=4096,
act="relu", dropout=0.5),
srcLayers=["fc6"])
model._retrieve_("addlayer", model=model_name, name="fc8",
layer=dict(type="output", n=n_classes, act="softmax"),
After Change
model = Model.from_table(conn.CASTable(model_name))
model.load_weights(path=pre_train_weight_file)
weight_table_options = model.model_weights.to_table_params()
weight_table_options.update(dict(where="_LayerID_<19"))
model._retrieve_("table.partition", table=weight_table_options,
casout=dict(replace=True, **model.model_weights.to_table_params()))
model._retrieve_("removelayer", model=model_name, name="fc8")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: sassoftware/python-dlpy
Commit Name: 41a1d4a6f6422f5bc403981189c3001e2e391c70
Time: 2018-03-08
Author: leo.liu@sas.com
File Name: dlpy/applications.py
Class Name:
Method Name: VGG16
Project Name: sassoftware/python-dlpy
Commit Name: 41a1d4a6f6422f5bc403981189c3001e2e391c70
Time: 2018-03-08
Author: leo.liu@sas.com
File Name: dlpy/applications.py
Class Name:
Method Name: VGG19
Project Name: sassoftware/python-dlpy
Commit Name: 6d9ea2c61b2da2da4477ea70e9a47dd39f6fdc20
Time: 2017-08-02
Author: leo.liu@sas.com
File Name: dl_api/utils.py
Class Name:
Method Name: input_table_check
Project Name: sassoftware/python-dlpy
Commit Name: 1618165dd5cfd84035e8f4f8c21f07b50a32f2cf
Time: 2017-07-20
Author: leo.liu@sas.com
File Name: dl_api/utils.py
Class Name:
Method Name: input_table_check