Home | History | Annotate | Download | only in kernels

Lines Matching defs:env

30 #include "tensorflow/core/platform/env.h"
35 static Status ReadEntireFile(Env* env, const string& filename,
38 TF_RETURN_IF_ERROR(env->NewRandomAccessFile(filename, &file));
47 WholeFileReader(Env* env, const string& node_name)
49 env_(env) {}
80 Env* env_;
87 Env* env = context->env();
89 [this, env]() { return new WholeFileReader(env, name()); });
113 ReadEntireFile(context->env(), input->scalar<string>()(),
138 if (!context->env()->FileExists(dir).ok()) {
139 OP_REQUIRES_OK(context, context->env()->RecursivelyCreateDir(dir));
142 WriteStringToFile(context->env(), filename,