def convert(self, net_string):
net_list = cnn.parse('net', net_string)
net_list = StateStringUtils(self.ssp).convert_model_string_to_states(net_list)[1:]
data, label = self.create_top_layer(caffe.TRAIN, self.hp.TRAIN_FILE, train=True)
data1, label1 = self.create_top_layer(caffe.TEST, self.hp.VAL_FILE, train=False)
loss, acc = self.unpack_list(net_list, data, label)
lls = [data, data1, acc, loss]
cc = to_proto(*lls)
cc = self.replace_top_names(cc)
return cc
# Iterate over token list from parser.
评论列表
文章目录