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

Method DeleteFile

tensorflow/core/framework/embedding/emb_file.h:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 const size_t offset) = 0;
49
50 virtual void DeleteFile() {
51 is_deleted_ = true;
52 if (fs_.is_open()) {
53 fs_.close();
54 }
55 close(fd_);
56 std::remove(filepath_.c_str());
57 }
58
59 void LoadExistFile(const std::string& old_file_path,
60 size_t count, size_t invalid_count) {

Callers 3

~SSDHashKVMethod · 0.45
CopyEmbFilesFromCkptMethod · 0.45
DeleteInvalidFilesMethod · 0.45

Calls 2

c_strMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected