diff options
author | Manjunath Kudlur <keveman@gmail.com> | 2015-11-06 16:27:58 -0800 |
---|---|---|
committer | Manjunath Kudlur <keveman@gmail.com> | 2015-11-06 16:27:58 -0800 |
commit | f41959ccb2d9d4c722fe8fc3351401d53bcf4900 (patch) | |
tree | ef0ca22cb2a5ac4bdec9d080d8e0788a53ed496d /tensorflow/core/kernels/ops_testutil.cc |
TensorFlow: Initial commit of TensorFlow library.
TensorFlow is an open source software library for numerical computation
using data flow graphs.
Base CL: 107276108
Diffstat (limited to 'tensorflow/core/kernels/ops_testutil.cc')
-rw-r--r-- | tensorflow/core/kernels/ops_testutil.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/ops_testutil.cc b/tensorflow/core/kernels/ops_testutil.cc new file mode 100644 index 0000000000..7bea17b9e2 --- /dev/null +++ b/tensorflow/core/kernels/ops_testutil.cc @@ -0,0 +1,18 @@ +#include "tensorflow/core/kernels/ops_testutil.h" + +namespace tensorflow { +namespace test { + +NodeDef Node(const string& name, const string& op, + const std::vector<string>& inputs) { + NodeDef def; + def.set_name(name); + def.set_op(op); + for (const string& s : inputs) { + def.add_input(s); + } + return def; +} + +} // namespace test +} // namespace tensorflow |