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

Function TF_AppendWritableFile

tensorflow/c/env.cc:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void TF_AppendWritableFile(TF_WritableFileHandle* handle, const char* data,
98 size_t length, TF_Status* status) {
99 auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle);
100 TF_SetStatus(status, TF_OK, "");
101 ::tensorflow::Set_TF_Status_from_Status(
102 status, cc_file->Append(::tensorflow::StringPiece{data, length}));
103}
104
105void TF_DeleteFile(const char* filename, TF_Status* status) {
106 TF_SetStatus(status, TF_OK, "");

Callers 1

TESTFunction · 0.85

Calls 3

TF_SetStatusFunction · 0.85
AppendMethod · 0.45

Tested by 1

TESTFunction · 0.68