Home | History | Annotate | Download | only in tests

Lines Matching refs:tensorflow

1 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
16 #include "tensorflow/compiler/xla/tests/filecheck.h"
20 #include "tensorflow/compiler/xla/types.h"
21 #include "tensorflow/compiler/xla/util.h"
22 #include "tensorflow/core/lib/core/errors.h"
23 #include "tensorflow/core/lib/io/path.h"
24 #include "tensorflow/core/platform/env.h"
25 #include "tensorflow/core/platform/subprocess.h"
30 using tensorflow::io::JoinPath;
34 auto env = tensorflow::Env::Default();
36 return tensorflow::errors::Internal("couldn't get a pattern file name");
38 TF_RETURN_IF_ERROR(tensorflow::WriteStringToFile(env, pattern_path, pattern));
49 tensorflow::SubProcess file_check_process;
52 file_check_process.SetChannelAction(tensorflow::CHAN_STDIN,
53 tensorflow::ACTION_PIPE);
54 file_check_process.SetChannelAction(tensorflow::CHAN_STDERR,
55 tensorflow::ACTION_PIPE);
57 return tensorflow::errors::Internal("couldn't start FileCheck");
71 XLA_LOG_LINES(tensorflow::WARNING, input);
73 XLA_LOG_LINES(tensorflow::WARNING, pattern);