| 584 | |
| 585 | template<typename T> |
| 586 | void ArrayCpuGpu<T>::set_cpu_data(T* data) |
| 587 | { |
| 588 | try |
| 589 | { |
| 590 | #ifdef USE_CAFFE |
| 591 | spImpl->pCaffeBlobT->set_cpu_data(data); |
| 592 | #else |
| 593 | UNUSED(data); |
| 594 | #endif |
| 595 | } |
| 596 | catch (const std::exception& e) |
| 597 | { |
| 598 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | template<typename T> |
| 603 | const int* ArrayCpuGpu<T>::gpu_shape() const |