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

Function WriteFile

tensorflow/contrib/ffmpeg/default/ffmpeg_lib.cc:306–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306Status WriteFile(const string& filename, StringPiece contents) {
307 Env& env = *Env::Default();
308 std::unique_ptr<WritableFile> file;
309 TF_RETURN_IF_ERROR(env.NewWritableFile(filename, &file));
310 TF_RETURN_IF_ERROR(file->Append(contents));
311 TF_RETURN_IF_ERROR(file->Close());
312 return Status::OK();
313}
314
315Status ReadAudioFile(const string& filename, const string& audio_format_id,
316 int32 samples_per_second, int32 channel_count,

Callers 2

ComputeMethod · 0.50
DecodeFunction · 0.50

Calls 4

DefaultFunction · 0.85
NewWritableFileMethod · 0.45
AppendMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected