| 202 | |
| 203 | template<typename T> |
| 204 | std::string ArrayCpuGpu<T>::shape_string() const |
| 205 | { |
| 206 | try |
| 207 | { |
| 208 | #ifdef USE_CAFFE |
| 209 | return spImpl->pCaffeBlobT->shape_string(); |
| 210 | #else |
| 211 | return ""; |
| 212 | #endif |
| 213 | } |
| 214 | catch (const std::exception& e) |
| 215 | { |
| 216 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 217 | return ""; |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | std::vector<int> DUMB_VECTOR; |
| 222 | template<typename T> |