aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/c_test_util.h
diff options
context:
space:
mode:
authorGravatar Mingsheng Hong <hongm@google.com>2018-03-01 14:15:20 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-01 14:18:50 -0800
commitf8f4a6e26cc1108495c0b9a55d9a7d6e7005c2b5 (patch)
tree47566990e1e975b7f6e6d60083b454951020fee4 /tensorflow/c/c_test_util.h
parent80710d5c53a8b2896a57dbe026d7f742e71fc03b (diff)
Internal change.
PiperOrigin-RevId: 187532378
Diffstat (limited to 'tensorflow/c/c_test_util.h')
-rw-r--r--tensorflow/c/c_test_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tensorflow/c/c_test_util.h b/tensorflow/c/c_test_util.h
index 2a70177c72..8cf060f73f 100644
--- a/tensorflow/c/c_test_util.h
+++ b/tensorflow/c/c_test_util.h
@@ -44,8 +44,14 @@ TF_Tensor* Int32Tensor(int32_t v);
TF_Tensor* DoubleTensor(double v);
+TF_Tensor* FloatTensor(float v);
+
+// TODO(hongm): Change Placeholder() to take in a TF_DataType parameter, and
+// unify with PlaceholderFloat.
TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s,
const char* name = "feed");
+TF_Operation* PlaceholderFloat(TF_Graph* graph, TF_Status* s,
+ const char* name = "feed");
TF_Operation* Const(TF_Tensor* t, TF_Graph* graph, TF_Status* s,
const char* name = "const");
@@ -56,6 +62,9 @@ TF_Operation* ScalarConst(int32_t v, TF_Graph* graph, TF_Status* s,
TF_Operation* ScalarConst(double v, TF_Graph* graph, TF_Status* s,
const char* name = "scalar");
+TF_Operation* ScalarConst(float v, TF_Graph* graph, TF_Status* s,
+ const char* name = "scalar");
+
TF_Operation* Add(TF_Operation* l, TF_Operation* r, TF_Graph* graph,
TF_Status* s, const char* name = "add");