summaryrefslogtreecommitdiff
path: root/res/TensorFlowTests/NET_0025
diff options
context:
space:
mode:
Diffstat (limited to 'res/TensorFlowTests/NET_0025')
-rw-r--r--res/TensorFlowTests/NET_0025/circle_1.0_rel_requirement.rule8
-rw-r--r--res/TensorFlowTests/NET_0025/test.info3
-rw-r--r--res/TensorFlowTests/NET_0025/test.manifest1
-rw-r--r--res/TensorFlowTests/NET_0025/test.pbtxt161
-rw-r--r--res/TensorFlowTests/NET_0025/tflite_1.0_rel_requirement.rule8
5 files changed, 181 insertions, 0 deletions
diff --git a/res/TensorFlowTests/NET_0025/circle_1.0_rel_requirement.rule b/res/TensorFlowTests/NET_0025/circle_1.0_rel_requirement.rule
new file mode 100644
index 000000000..fc3f7af80
--- /dev/null
+++ b/res/TensorFlowTests/NET_0025/circle_1.0_rel_requirement.rule
@@ -0,0 +1,8 @@
+# tf2circle-dredd-pbtxt-test against CBR fusion
+
+RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 # 1 means verification is OK
+
+RULE "ALL_OP_COUNT" $(all_op_count) '=' 1
+RULE "OP_COUNT_CONV2D" $(op_count CONV_2D) '=' 1
+RULE "WEIGHT_CONST" $(conv2d_weight_not_constant) '=' 0
+RULE "FILE_SIZE" $(file_size) '<' 1040 # As of 191105, file size is 1016
diff --git a/res/TensorFlowTests/NET_0025/test.info b/res/TensorFlowTests/NET_0025/test.info
new file mode 100644
index 000000000..6c5eafde7
--- /dev/null
+++ b/res/TensorFlowTests/NET_0025/test.info
@@ -0,0 +1,3 @@
+# This is a slim version of first 4 nodes in inception v3 (from Placeholder to the first RelU)
+input, input:0, TF_FLOAT, [1, 5, 5, 3]
+output, InceptionV3/InceptionV3/Conv2d_1a_3x3/Relu:0, TF_FLOAT, [1, 2, 2, 4]
diff --git a/res/TensorFlowTests/NET_0025/test.manifest b/res/TensorFlowTests/NET_0025/test.manifest
new file mode 100644
index 000000000..99a2c81a0
--- /dev/null
+++ b/res/TensorFlowTests/NET_0025/test.manifest
@@ -0,0 +1 @@
+SUMMARY: Simple CBR(Conv2D + BiasAdd + ReLU) network
diff --git a/res/TensorFlowTests/NET_0025/test.pbtxt b/res/TensorFlowTests/NET_0025/test.pbtxt
new file mode 100644
index 000000000..e927864d8
--- /dev/null
+++ b/res/TensorFlowTests/NET_0025/test.pbtxt
@@ -0,0 +1,161 @@
+node {
+ name: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+ op: "Const"
+ attr {
+ key: "dtype"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "value"
+ value {
+ tensor {
+ dtype: DT_FLOAT
+ tensor_shape {
+ dim {
+ size: 3
+ }
+ dim {
+ size: 3
+ }
+ dim {
+ size: 3
+ }
+ dim {
+ size: 4
+ }
+ }
+ float_val: 1.0
+ }
+ }
+ }
+}
+node {
+ name: "input"
+ op: "Placeholder"
+ attr {
+ key: "dtype"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "shape"
+ value {
+ shape {
+ dim {
+ size: 1
+ }
+ dim {
+ size: 5
+ }
+ dim {
+ size: 5
+ }
+ dim {
+ size: 3
+ }
+ }
+ }
+ }
+}
+node {
+ name: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D"
+ op: "Conv2D"
+ input: "input:0"
+ input: "InceptionV3/Conv2d_1a_3x3/weights/read/_3__cf__3"
+ attr {
+ key: "T"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "data_format"
+ value {
+ s: "NHWC"
+ }
+ }
+ attr {
+ key: "dilations"
+ value {
+ list {
+ i: 1
+ i: 1
+ i: 1
+ i: 1
+ }
+ }
+ }
+ attr {
+ key: "padding"
+ value {
+ s: "VALID"
+ }
+ }
+ attr {
+ key: "strides"
+ value {
+ list {
+ i: 1
+ i: 2
+ i: 2
+ i: 1
+ }
+ }
+ }
+}
+node {
+ name: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D_bn_offset"
+ op: "Const"
+ attr {
+ key: "dtype"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "value"
+ value {
+ tensor {
+ dtype: DT_FLOAT
+ tensor_shape {
+ dim {
+ size: 4
+ }
+ }
+ float_val: 1.0
+ }
+ }
+ }
+}
+node {
+ name: "InceptionV3/InceptionV3/Conv2d_1a_3x3/BatchNorm/FusedBatchNorm"
+ op: "BiasAdd"
+ input: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D"
+ input: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Conv2D_bn_offset"
+ attr {
+ key: "T"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "data_format"
+ value {
+ s: "NHWC"
+ }
+ }
+}
+node {
+ name: "InceptionV3/InceptionV3/Conv2d_1a_3x3/Relu"
+ op: "Relu"
+ input: "InceptionV3/InceptionV3/Conv2d_1a_3x3/BatchNorm/FusedBatchNorm"
+ attr {
+ key: "T"
+ value {
+ type: DT_FLOAT
+ }
+ }
+}
diff --git a/res/TensorFlowTests/NET_0025/tflite_1.0_rel_requirement.rule b/res/TensorFlowTests/NET_0025/tflite_1.0_rel_requirement.rule
new file mode 100644
index 000000000..11296c7d9
--- /dev/null
+++ b/res/TensorFlowTests/NET_0025/tflite_1.0_rel_requirement.rule
@@ -0,0 +1,8 @@
+# tf2tflite-dredd-pbtxt-test against NET_0025, which is CBR(Conv2D + BiasAdd + ReLU) network
+# how to write a RULE:
+# RULE rule_name rule_function(actual value) condition expected_value
+
+RULE "ALL_OP_COUNT" $(all_op_count) '=' 1
+RULE "OP_COUNT_CONV2D" $(op_count CONV_2D) '=' 1
+RULE "WEIGHT_CONST" $(conv2d_weight_not_constant) '=' 0
+RULE "FILE_SIZE" $(file_size) '<' 1040 # As of 191105, file size is 1016