MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / blob_by_name

Method blob_by_name

rtpose_wrapper/src/caffe/net.cpp:967–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965
966template <typename Dtype>
967const shared_ptr<Blob<Dtype> > Net<Dtype>::blob_by_name(
968 const string& blob_name) const {
969 shared_ptr<Blob<Dtype> > blob_ptr;
970 if (has_blob(blob_name)) {
971 blob_ptr = blobs_[blob_names_index_.find(blob_name)->second];
972 } else {
973 blob_ptr.reset((Blob<Dtype>*)(NULL));
974 LOG(WARNING) << "Unknown blob name " << blob_name;
975 }
976 return blob_ptr;
977}
978
979template <typename Dtype>
980bool Net<Dtype>::has_layer(const string& layer_name) const {

Callers 5

processFrameFunction · 0.80
TYPED_TESTFunction · 0.80
LayerSetUpMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by 2

TYPED_TESTFunction · 0.64