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

Method InitializeToFile

tensorflow/core/util/memmapped_file_system_writer.cc:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace tensorflow {
20
21Status MemmappedFileSystemWriter::InitializeToFile(Env* env,
22 const string& filename) {
23 auto status = env->NewWritableFile(filename, &output_file_);
24 if (status.ok()) {
25 output_file_offset_ = 0;
26 }
27 return status;
28}
29
30Status MemmappedFileSystemWriter::SaveTensor(const Tensor& tensor,
31 const string& element_name) {

Callers 2

Calls 2

NewWritableFileMethod · 0.45
okMethod · 0.45

Tested by 1