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

Method Finish

tensorflow/core/util/tensor_slice_writer.cc:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 builder_->Add(key, val);
45 }
46 Status Finish(int64* file_size) override {
47 *file_size = -1;
48 Status s = builder_->Finish();
49 if (s.ok()) {
50 s = file_->Close();
51 if (s.ok()) {
52 *file_size = builder_->FileSize();
53 }
54 }
55 if (!s.ok()) {
56 s = errors::Internal("Error writing (tmp) checkpoint file: ", name_, ": ",
57 s.ToString());
58 }
59 builder_.reset();
60 file_.reset();
61 return s;
62 }
63
64 private:
65 string name_;

Callers

nothing calls this directly

Calls 7

InternalFunction · 0.85
FileSizeMethod · 0.80
FinishMethod · 0.45
okMethod · 0.45
CloseMethod · 0.45
ToStringMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected