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

Method ClearFileCaches

tensorflow/core/platform/cloud/gcs_file_system.cc:1047–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047void GcsFileSystem::ClearFileCaches(const string& fname) {
1048 tf_shared_lock l(block_cache_lock_);
1049 file_block_cache_->RemoveFile(fname);
1050 stat_cache_->Delete(fname);
1051 // TODO(rxsang): Remove the patterns that matche the file in
1052 // MatchingPathsCache as well.
1053}
1054
1055Status GcsFileSystem::NewWritableFile(const string& fname,
1056 std::unique_ptr<WritableFile>* result) {

Callers

nothing calls this directly

Calls 2

RemoveFileMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected