MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / reshapeNetOpenCv

Function reshapeNetOpenCv

src/openpose/net/netOpenCv.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71 #ifdef USE_OPEN_CV_DNN
72 inline void reshapeNetOpenCv(caffe::Net<float>* caffeNet, const std::vector<int>& dimensions)
73 {
74 try
75 {
76 caffeNet->blobs()[0]->Reshape(dimensions);
77 caffeNet->Reshape();
78 #ifdef USE_CUDA
79 cudaCheck(__LINE__, __FUNCTION__, __FILE__);
80 #endif
81 }
82 catch (const std::exception& e)
83 {
84 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
85 }
86 }
87 #endif
88
89 NetOpenCv::NetOpenCv(const std::string& caffeProto, const std::string& caffeTrainedModel, const int gpuId)

Callers

nothing calls this directly

Calls 4

cudaCheckFunction · 0.85
whatMethod · 0.80
errorFunction · 0.50
ReshapeMethod · 0.45

Tested by

no test coverage detected