| 568 | } |
| 569 | |
| 570 | string DecodeString(const string& data, size_t idx) { |
| 571 | string result = ""; |
| 572 | int i = 0; |
| 573 | while(data[idx+i] != 0){ |
| 574 | result.push_back(char(data[idx+i])); |
| 575 | i++; |
| 576 | } |
| 577 | return result; |
| 578 | } |
| 579 | |
| 580 | template<typename Dtype> |
| 581 | void DataTransformer<Dtype>::ReadMetaData(MetaData& meta, const string& data, size_t offset3, size_t offset1) { //very specific to genLMDB.py |