MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / NewIterator

Method NewIterator

tensorflow/core/lib/io/block.cc:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233};
234
235Iterator* Block::NewIterator() {
236 if (size_ < sizeof(uint32)) {
237 return NewErrorIterator(errors::DataLoss("bad block contents"));
238 }
239 const uint32 num_restarts = NumRestarts();
240 if (num_restarts == 0) {
241 return NewEmptyIterator();
242 } else {
243 return new Iter(data_, restart_offset_, num_restarts);
244 }
245}
246
247} // namespace table
248} // namespace tensorflow

Callers

nothing calls this directly

Calls 2

NewErrorIteratorFunction · 0.85
NewEmptyIteratorFunction · 0.85

Tested by

no test coverage detected