1cd87b67822c94c49d30ce1eabce792b3db7c272,chainercv/links/model/vgg/vgg.py,VGG16Layers,__init__,#VGG16Layers#Any#Any#Any#Any#,13
Before Change
("fc8", [self.fc8]),
("prob", [F.softmax]),
])
if feature not in self.functions:
raise ValueError("`feature` shuold be one of the keys of "
"VGG16Layers.functions.")
// Links can be safely removed because parameters in these links
// are guaranteed to not be in a computational graph.
names = [child.name for child in self.children()]
delete_layers = False
for func in self.functions.keys():
if delete_layers:
After Change
// are guaranteed to not be in a computational graph.
names = [child.name for child in self.children()]
functions = self.functions
for name in names:
if name not in functions:
delattr(self, name)
@property
def functions(self):
default_funcs = collections.OrderedDict([
("conv1_1", [self.conv1_1, F.relu]),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: chainer/chainercv
Commit Name: 1cd87b67822c94c49d30ce1eabce792b3db7c272
Time: 2017-06-14
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg.py
Class Name: VGG16Layers
Method Name: __init__
Project Name: OpenNMT/OpenNMT-py
Commit Name: 32579822389423c7f4120e222aa26652f8507735
Time: 2018-12-18
Author: guillaumekln@users.noreply.github.com
File Name: onmt/utils/optimizers.py
Class Name: Optimizer
Method Name: set_parameters
Project Name: ray-project/ray
Commit Name: 1d532d1cb8b829bdf7055a22c206032ca0b72e46
Time: 2020-04-02
Author: rkooo567@gmail.com
File Name: python/ray/dashboard/metrics_exporter/schema.py
Class Name: BaseModel
Method Name: parse_obj