MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / read_one

Method read_one

rtpose_wrapper/src/caffe/data_reader.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void DataReader::Body::read_one(db::Cursor* cursor, QueuePair* qp) {
106 Datum* datum = qp->free_.pop();
107 // TODO deserialize in-place instead of copy?
108 datum->ParseFromString(cursor->value());
109 qp->full_.push(datum);
110
111 // go to the next iter
112 cursor->Next();
113 if (!cursor->valid()) {
114 DLOG(INFO) << "Restarting data prefetching from start.";
115 cursor->SeekToFirst();
116 }
117}
118
119} // namespace caffe

Callers

nothing calls this directly

Calls 6

popMethod · 0.80
pushMethod · 0.80
valueMethod · 0.45
NextMethod · 0.45
validMethod · 0.45
SeekToFirstMethod · 0.45

Tested by

no test coverage detected