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

Method mutable_gpu_diff

src/openpose/core/arrayCpuGpu.cpp:751–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749
750 template<typename T>
751 T* ArrayCpuGpu<T>::mutable_gpu_diff()
752 {
753 try
754 {
755 #if defined(USE_CAFFE) && (defined(USE_CUDA) || defined(USE_OPENCL))
756 return spImpl->pCaffeBlobT->mutable_gpu_diff();
757 #else
758 error("Required `USE_CAFFE` and `USE_CUDA` flags enabled.", __LINE__, __FUNCTION__, __FILE__);
759 return nullptr;
760 #endif
761 }
762 catch (const std::exception& e)
763 {
764 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
765 return nullptr;
766 }
767 }
768
769 template<typename T>
770 void ArrayCpuGpu<T>::Update()

Callers

nothing calls this directly

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected