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

Method offset

src/openpose/core/arrayCpuGpu.cpp:445–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444 template<typename T>
445 int ArrayCpuGpu<T>::offset(const int n, const int c, const int h, const int w) const
446 {
447 try
448 {
449 #ifdef USE_CAFFE
450 return spImpl->pCaffeBlobT->offset(n, c, h, w);
451 #else
452 UNUSED(n);
453 UNUSED(c);
454 UNUSED(h);
455 UNUSED(w);
456 return -1;
457 #endif
458 }
459 catch (const std::exception& e)
460 {
461 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
462 return -1;
463 }
464 }
465
466 // template<typename T>
467 // int ArrayCpuGpu<T>::offset(const std::vector<int>& indices) const

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected