| 694 | |
| 695 | template<typename T> |
| 696 | T* ArrayCpuGpu<T>::mutable_cpu_data() |
| 697 | { |
| 698 | try |
| 699 | { |
| 700 | #ifdef USE_CAFFE |
| 701 | return spImpl->pCaffeBlobT->mutable_cpu_data(); |
| 702 | #else |
| 703 | return nullptr; |
| 704 | #endif |
| 705 | } |
| 706 | catch (const std::exception& e) |
| 707 | { |
| 708 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 709 | return nullptr; |
| 710 | } |
| 711 | } |
| 712 | |
| 713 | template<typename T> |
| 714 | T* ArrayCpuGpu<T>::mutable_gpu_data() |
no test coverage detected