Home | History | Annotate | Download | only in platform

Lines Matching defs:Env

42 /// Callers may wish to provide a custom Env object to get fine grain
45 /// All Env implementations are safe for concurrent access from
47 class Env {
49 Env();
50 virtual ~Env() = default;
55 /// Sophisticated users may wish to provide their own Env
59 static Env* Default();
64 /// Returned FileSystem object is still owned by the Env object and will
68 /// \brief Returns the file system schemes registered for this Env.
90 /// shouldn't live longer than the Env object.
106 /// shouldn't live longer than the Env object.
121 /// shouldn't live longer than the Env object.
135 /// object shouldn't live longer than the Env object.
299 TF_DISALLOW_COPY_AND_ASSIGN(Env);
303 /// \brief An implementation of Env that forwards all calls to another Env.
306 /// functionality of another Env.
307 class EnvWrapper : public Env {
310 explicit EnvWrapper(Env* t) : target_(t) {}
313 /// Returns the target to which this Env forwards all calls
314 Env* target() const { return target_; }
361 Env* target_;
393 Status ReadFileToString(Env* env, const string& fname, string* data);
397 Env* env, const string& fname,
401 Status WriteBinaryProto(Env* env, const string& fname,
406 Status ReadBinaryProto(Env* env, const string& fname,
410 Status WriteTextProto(Env* env, const string& fname,
415 Status ReadTextProto(Env* env, const string& fname,
424 Register(Env* env, const string& scheme) {
426 env->RegisterFileSystem(scheme, []() -> FileSystem* { return new Factory; })
439 #define REGISTER_FILE_SYSTEM_ENV(env, scheme, factory) \
440 REGISTER_FILE_SYSTEM_UNIQ_HELPER(__COUNTER__, env, scheme, factory)
441 #define REGISTER_FILE_SYSTEM_UNIQ_HELPER(ctr, env, scheme, factory) \
442 REGISTER_FILE_SYSTEM_UNIQ(ctr, env, scheme, factory)
443 #define REGISTER_FILE_SYSTEM_UNIQ(ctr, env, scheme, factory) \
446 ::tensorflow::register_file_system::Register<factory>(env, scheme)
449 REGISTER_FILE_SYSTEM_ENV(Env::Default(), scheme, factory);