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

Function TF_FileStat

tensorflow/c/env.cc:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void TF_FileStat(const char* filename, TF_FileStatistics* stats,
52 TF_Status* status) {
53 ::tensorflow::FileStatistics cc_stats;
54 TF_SetStatus(status, TF_OK, "");
55 ::tensorflow::Status s =
56 ::tensorflow::Env::Default()->Stat(filename, &cc_stats);
57 ::tensorflow::Set_TF_Status_from_Status(status, s);
58 if (s.ok()) {
59 stats->length = cc_stats.length;
60 stats->mtime_nsec = cc_stats.mtime_nsec;
61 stats->is_directory = cc_stats.is_directory;
62 }
63}
64
65void TF_NewWritableFile(const char* filename, TF_WritableFileHandle** handle,
66 TF_Status* status) {

Callers 1

TESTFunction · 0.85

Calls 5

TF_SetStatusFunction · 0.85
DefaultFunction · 0.85
StatMethod · 0.45
okMethod · 0.45

Tested by 1

TESTFunction · 0.68