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

Method mutable_gpu_data

src/openpose/core/arrayCpuGpu.cpp:714–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712
713 template<typename T>
714 T* ArrayCpuGpu<T>::mutable_gpu_data()
715 {
716 try
717 {
718 #if defined(USE_CAFFE) && (defined(USE_CUDA) || defined(USE_OPENCL))
719 return spImpl->pCaffeBlobT->mutable_gpu_data();
720 #else
721 error("Required `USE_CAFFE` and `USE_CUDA` flags enabled.", __LINE__, __FUNCTION__, __FILE__);
722 return nullptr;
723 #endif
724 }
725 catch (const std::exception& e)
726 {
727 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
728 return nullptr;
729 }
730 }
731
732 template<typename T>
733 T* ArrayCpuGpu<T>::mutable_cpu_diff()

Callers 8

forwardPassMethod · 0.80
Forward_gpuMethod · 0.80
Forward_oclMethod · 0.80
Forward_gpuMethod · 0.80
Forward_oclMethod · 0.80
Forward_gpuMethod · 0.80
forwardPassMethod · 0.80
clTestFunction · 0.80

Calls 2

whatMethod · 0.80
errorFunction · 0.50

Tested by 1

clTestFunction · 0.64