tensorflow::EnvWrapper::~EnvWrapper()

tensorflow::EnvWrapper::EnvWrapper(Env *t) Initializes an EnvWrapper that delegates all calls to *t.

tensorflow::Env::StartThread()

virtual Thread* tensorflow::Env::StartThread(const ThreadOptions &thread_options, const string &name, std::function< void()> fn) TF_MUST_USE_RESULT=0 Returns a new thread that is running fn() and is identified (for debugging/performance-analysis) by "name". Caller takes ownership of the result and must delete it eventually (the deletion will block until fn() stops running).

tensorflow::EnvWrapper::GetFileSystemForFile()

Status tensorflow::EnvWrapper::GetFileSystemForFile(const string &fname, FileSystem **result) override 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::SleepForMicroseconds()

virtual void tensorflow::Env::SleepForMicroseconds(int64 micros)=0 Sleeps/delays the thread for the prescribed number of micro-seconds.

tensorflow::Env::SchedClosureAfter()

virtual void tensorflow::Env::SchedClosureAfter(int64 micros, std::function< void()> closure)=0

tensorflow::Env::NewReadOnlyMemoryRegionFromFile()

Status tensorflow::Env::NewReadOnlyMemoryRegionFromFile(const string &fname, std::unique_ptr< ReadOnlyMemoryRegion > *result) Creates a readonly region of memory with the file context. On success, it returns a pointer to read-only memory region from the content of file fname. The ownership of the region is passed to the caller. On failure stores nullptr in *result and returns non-OK. The returned memory region can be accessed from many threads in parallel. The ownership of the return

tensorflow::Env::SchedClosure()

virtual void tensorflow::Env::SchedClosure(std::function< void()> closure)=0

tensorflow::Env::NewWritableFile()

Status tensorflow::Env::NewWritableFile(const string &fname, std::unique_ptr< WritableFile > *result) Creates an object that writes to a new file with the specified name. Deletes any existing file with the same name and creates a new file. 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 t

tensorflow::Env::RenameFile()

Status tensorflow::Env::RenameFile(const string &src, const string &target) Renames file src to target. If target already exists, it will be replaced.

tensorflow::Env::NowMicros()

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