Tencent / FeatherCNN

FeatherCNN is a high performance inference engine for convolutional neural networks.
1.21k stars 286 forks source link

loadparam #47

Open ganchunsheng opened 4 years ago

ganchunsheng commented 4 years ago
// printf("bottom name %s\n", bottom_name);
// layer->bottoms[j] = new Blob<float>(bottom_name);
std::map<std::string, Blob<float> *>::iterator map_iter = blob_map.find(bottom_name); 
if (( map_iter == blob_map.end()) && (layer->type.compare("Input") != 0))
{
        LOGE("Topology error: bottom blob %s of layer %s type %s not found in map.", bottom_name, layer_name, layer_type);
        return -300;
}

在解析网络配置文件时,配置文件中blob在blob_map中进行查找,如果找不到就返回,对于新的bottom blob不是应该新创建吗,如果直接返回的话,能完成网络的解析吗?