| 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 |