tensorflow::Env::RegisterFileSystem()

Status tensorflow::Env::RegisterFileSystem(const string &scheme, FileSystemRegistry::Factory factory)

tensorflow::Env::NowSeconds()

virtual uint64 tensorflow::Env::NowSeconds() Returns the number of seconds since some fixed point in time. Only useful for computing deltas of time.

tensorflow::Env::GetFileSystemForFile()

Status tensorflow::Env::GetFileSystemForFile(const string &fname, FileSystem **result) Returns the FileSystem object to handle operations on the file specified by 'fname'. The FileSystem object is used as the implementation for the file system related (non-virtual) functions that follow. Returned FileSystem object is still owned by the Env object and will.

tensorflow::Env::GetRegisteredFileSystemSchemes()

Status tensorflow::Env::GetRegisteredFileSystemSchemes(std::vector< string > *schemes) Returns the file system schemes registered for this Env .

tensorflow::Env::IsDirectory()

Status tensorflow::Env::IsDirectory(const string &fname) Returns whether the given path is a directory or not. Typical return codes (not guaranteed exhaustive): OK - The path exists and is a directory. FAILED_PRECONDITION - The path exists and is not a directory. NOT_FOUND - The path entry does not exist. PERMISSION_DENIED - Insufficient permissions. UNIMPLEMENTED - The file factory doesn't support directories.

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

tensorflow::Env::NewRandomAccessFile()

Status tensorflow::Env::NewRandomAccessFile(const string &fname, std::unique_ptr< RandomAccessFile > *result) Creates a brand new random access read-only file with the specified name. On success, stores a pointer to the new file in *result and returns OK. On failure stores NULL in *result and returns non-OK. If the file does not exist, returns a non-OK status. The returned file may be concurrently accessed by multiple threads. The ownership of the returned RandomAccessFile is passed

tensorflow::Env::GetSymbolFromLibrary()

virtual Status tensorflow::Env::GetSymbolFromLibrary(void *handle, const char *symbol_name, void **symbol)=0

tensorflow::Env::LoadLibrary()

virtual Status tensorflow::Env::LoadLibrary(const char *library_filename, void **handle)=0

tensorflow::Env::Default()

static Env* tensorflow::Env::Default() Returns a default environment suitable for the current operating system. Sophisticated users may wish to provide their own Env implementation instead of relying on this default environment. The result of Default() belongs to this library and must never be deleted.