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

Method Next

tensorflow/core/platform/env.cc:474–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472 Status status() const { return status_; }
473
474 bool Next(const void** data, int* size) override {
475 StringPiece result;
476 Status s = file_->Read(pos_, kBufSize, &result, scratch_);
477 if (result.empty()) {
478 status_ = s;
479 return false;
480 }
481 pos_ += result.size();
482 *data = result.data();
483 *size = result.size();
484 return true;
485 }
486
487 private:
488 static const int kBufSize = 512 << 10;

Callers 3

TransformMethod · 0.45
BuildV2VarMapsMethod · 0.45
WriteRestVariablesFunction · 0.45

Calls 4

ReadMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected