summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>2019-09-06 17:58:09 +0900
committerGitHub Enterprise <noreply-CODE@samsung.com>2019-09-06 17:58:09 +0900
commitb0c7f278ad067d0d68cf1d51a90f134c0adb2312 (patch)
treec18a346ce51099b5e2c7e3f866b14247ef860037
parent3684301514dcc24e2b522adca33dd9ba3aec2c87 (diff)
downloadnnfw-b0c7f278ad067d0d68cf1d51a90f134c0adb2312.tar.gz
nnfw-b0c7f278ad067d0d68cf1d51a90f134c0adb2312.tar.bz2
nnfw-b0c7f278ad067d0d68cf1d51a90f134c0adb2312.zip
[res] TF test for Add broadcast with const scala (#7250)
This will add TF test material of Add operator with rank 4 tensor with const scala Signed-off-by: SaeHie Park <saehie.park@samsung.com>
-rw-r--r--res/TensorFlowTests/UNIT_Add_004/test.info2
-rw-r--r--res/TensorFlowTests/UNIT_Add_004/test.pbtxt62
2 files changed, 64 insertions, 0 deletions
diff --git a/res/TensorFlowTests/UNIT_Add_004/test.info b/res/TensorFlowTests/UNIT_Add_004/test.info
new file mode 100644
index 000000000..201dfd6fc
--- /dev/null
+++ b/res/TensorFlowTests/UNIT_Add_004/test.info
@@ -0,0 +1,2 @@
+input, input_01:0, TF_FLOAT, [1, 3, 3, 5]
+output, add:0, TF_FLOAT, [1, 3, 3, 5]
diff --git a/res/TensorFlowTests/UNIT_Add_004/test.pbtxt b/res/TensorFlowTests/UNIT_Add_004/test.pbtxt
new file mode 100644
index 000000000..ca9295022
--- /dev/null
+++ b/res/TensorFlowTests/UNIT_Add_004/test.pbtxt
@@ -0,0 +1,62 @@
+node {
+ name: "input_01"
+ op: "Placeholder"
+ attr {
+ key: "dtype"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "shape"
+ value {
+ shape {
+ dim {
+ size: 1
+ }
+ dim {
+ size: 3
+ }
+ dim {
+ size: 3
+ }
+ dim {
+ size: 5
+ }
+ }
+ }
+ }
+}
+node {
+ name: "scala"
+ op: "Const"
+ attr {
+ key: "dtype"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "value"
+ value {
+ tensor {
+ dtype: DT_FLOAT
+ tensor_shape {
+ }
+ float_val: 1.0
+ }
+ }
+ }
+}
+node {
+ name: "add"
+ op: "Add"
+ input: "input_01"
+ input: "scala"
+ attr {
+ key: "T"
+ value {
+ type: DT_FLOAT
+ }
+ }
+}