| 258 | |
| 259 | template<typename T> |
| 260 | int ArrayCpuGpu<T>::num_axes() const |
| 261 | { |
| 262 | try |
| 263 | { |
| 264 | #ifdef USE_CAFFE |
| 265 | return spImpl->pCaffeBlobT->num_axes(); |
| 266 | #else |
| 267 | return -1; |
| 268 | #endif |
| 269 | } |
| 270 | catch (const std::exception& e) |
| 271 | { |
| 272 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 273 | return -1; |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | template<typename T> |
| 278 | int ArrayCpuGpu<T>::count() const |