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

Method FlushFileSystemCaches

tensorflow/core/platform/env.cc:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120Status Env::FlushFileSystemCaches() {
121 std::vector<string> schemes;
122 TF_RETURN_IF_ERROR(GetRegisteredFileSystemSchemes(&schemes));
123 for (const string& scheme : schemes) {
124 FileSystem* fs = nullptr;
125 TF_RETURN_IF_ERROR(
126 GetFileSystemForFile(io::CreateURI(scheme, "", ""), &fs));
127 fs->FlushCaches();
128 }
129 return Status::OK();
130}
131
132Status Env::NewRandomAccessFile(const string& fname,
133 std::unique_ptr<RandomAccessFile>* result) {

Callers 1

TEST_FFunction · 0.80

Calls 2

CreateURIFunction · 0.85
FlushCachesMethod · 0.45

Tested by 1

TEST_FFunction · 0.64