MCPcopy Create free account
hub / github.com/BVLC/caffe / has_layer

Method has_layer

src/caffe/net.cpp:962–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960
961template <typename Dtype>
962bool Net<Dtype>::has_layer(const string& layer_name) const {
963 return layer_names_index_.find(layer_name) != layer_names_index_.end();
964}
965
966template <typename Dtype>
967const shared_ptr<Layer<Dtype> > Net<Dtype>::layer_by_name(

Callers 7

TYPED_TESTFunction · 0.80
TYPED_TESTFunction · 0.80
NetNeedsV0ToV1UpgradeFunction · 0.80
UpgradeV0LayerParameterFunction · 0.80
UpgradeV1LayerParameterFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 4

TYPED_TESTFunction · 0.64
TYPED_TESTFunction · 0.64