tensorflow::Env::NewAppendableFile()

Status tensorflow::Env::NewAppendableFile(const string &fname, std::unique_ptr< WritableFile > *result)

Creates an object that either appends to an existing file, or writes to a new file (if the file does not exist to begin with).

On success, stores a pointer to the new file in *result and returns OK. On failure stores NULL in *result and returns non-OK.

The returned file will only be accessed by one thread at a time.

The ownership of the returned WritableFile is passed to the caller and the object should be deleted when is not used. The file object shouldn't live longer than the Env object.

doc_TensorFlow
2016-10-14 18:57:01
Comments
Leave a Comment

Please login to continue.