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

Method Read

tensorflow/core/util/tensor_bundle/tensor_bundle.cc:1520–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1518}
1519
1520Status SegmentBundleReader::Read(void* data, int64 size) {
1521 if (size > remain_size_) {
1522 return errors::InvalidArgument("SegmentBundleReader Read Exhuasted");
1523 }
1524 size_t read_size;
1525 TF_RETURN_IF_ERROR(input_->ReadNBytes(size, (char*)data, &read_size));
1526 remain_size_ -= size;
1527 return Status::OK();
1528}
1529
1530Status SegmentBundleReader::Skip(int64 size) {
1531 if (size > remain_size_) {

Callers 3

GetValueMethod · 0.45
LookupSegmentMethod · 0.45
LookupSegmentOffsetMethod · 0.45

Calls 2

InvalidArgumentFunction · 0.85
ReadNBytesMethod · 0.45

Tested by

no test coverage detected