41a1d4a6f6422f5bc403981189c3001e2e391c70,dlpy/applications.py,,VGG19,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,873
Before Change
else:
model = Model.from_table(conn.CASTable(model_name))
model.load_weights(path=pre_train_weight_file)
model._retrieve_("addlayer", model=model_name, name="fc6",
layer=dict(type="fullconnect", n=4096,
act="relu", dropout=0.5),
srcLayers=["pool5"])
// fc7 layer: 4096 neurons
model._retrieve_("addlayer", model=model_name, name="fc7",
layer=dict(type="fullconnect", n=4096,
act="relu", dropout=0.5),
srcLayers=["fc6"])
// fc output layer: 1000 neurons
model._retrieve_("addlayer", model=model_name, name="fc8",
After Change
else:
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_<22"))
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")
model._retrieve_("addlayer", model=model_name, name="fc8",
layer=dict(type="output", n=n_classes, act="softmax"),
srcLayers=["fc7"])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: VGG19
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: 58e806b4885fd0d573ee16ae7612e127face1bf6
Time: 2019-11-13
Author: Wenyu.Shi@sas.com
File Name: dlpy/network.py
Class Name: Network
Method Name: set_weights