tensorflow::EnvWrapper

#include <env.h>

An implementation of Env that forwards all calls to another Env.

Summary

May be useful to clients who wish to override just part of the functionality of another Env.

Inheritance

Inherits from: tensorflow::Env

Constructors and Destructors

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

Public functions

FormatLibraryFileName(const string & name, const string & version) override
virtual string
GetFileSystemForFile(const string & fname, FileSystem **result) override
virtual Status
Returns the FileSystem object to handle operations on the file specified by 'fname'.
GetRegisteredFileSystemSchemes(std::vector< string > *schemes) override
virtual Status
Returns the file system schemes registered for this Env.
GetSymbolFromLibrary(void *handle, const char *symbol_name, void **symbol) override
virtual Status
LoadLibrary(const char *library_filename, void **handle) override
virtual Status
MatchPath(const string & path, const string & pattern) override
virtual bool
Returns true if the path matches the given pattern.
NowMicros() override
virtual uint64
Returns the number of micro-seconds since the Unix epoch.
RegisterFileSystem(const string & scheme, FileSystemRegistry::Factory factory) override
virtual Status
SchedClosure(std::function< void()> closure) override
virtual void
SchedClosureAfter(int64 micros, std::function< void()> closure) override
virtual void
SleepForMicroseconds(int64 micros) override
virtual void
Sleeps/delays the thread for the prescribed number of micro-seconds.
StartThread(const ThreadOptions & thread_options, const string & name, std::function< void()> fn) override
virtual Thread *
Returns a new thread that is running fn() and is identified (for debugging/performance-analysis) by "name".
target() const
Env *
Returns the target to which this Env forwards all calls.

Public functions

EnvWrapper

 EnvWrapper(
  Env *t
)

Initializes an EnvWrapper that delegates all calls to *t.

FormatLibraryFileName

virtual string FormatLibraryFileName(
  const string & name,
  const string & version
) override

GetFileSystemForFile

virtual Status GetFileSystemForFile(
  const string & fname,