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

Method EndSegmentData

tensorflow/core/util/tensor_bundle/tensor_bundle.cc:585–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void BundleWriter::EndSegmentData(int64 total_bytes_written, int64 end_bytes_written) {
586
587 //out_->EndSegment(end_bytes_written);
588 uint32 crc32c = out_->crc32c();
589
590 entry_seg_->set_size(total_bytes_written);
591 entry_seg_->set_crc32c(crc32c::Mask(crc32c));
592 size_ += total_bytes_written;
593}
594
595// TODO(zongheng): on metadata write failure or !status_.ok(), consider removing
596// the orphaned data file.

Callers 2

EndMethod · 0.80

Calls 3

MaskFunction · 0.85
crc32cMethod · 0.80
set_sizeMethod · 0.45

Tested by

no test coverage detected