[mocotest/tf] FusedBatchNorm_000 (#4041)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Tue, 2 Jul 2019 04:29:48 +0000 (13:29 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 2 Jul 2019 04:29:48 +0000 (13:29 +0900)
This will add FusedBatchNorm_000 test material for minimul testing for FusedBatchNorm node

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
contrib/mocotest-tf/FusedBatchNorm_000/test.info [new file with mode: 0644]
contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt [new file with mode: 0644]

diff --git a/contrib/mocotest-tf/FusedBatchNorm_000/test.info b/contrib/mocotest-tf/FusedBatchNorm_000/test.info
new file mode 100644 (file)
index 0000000..30840e8
--- /dev/null
@@ -0,0 +1,3 @@
+# FusedBatchNorm
+input,  placeholder:0,  TF_FLOAT,  [1, 4, 4, 1]
+output, FBN_01:0,  TF_FLOAT,  [1, 4, 4, 1]
diff --git a/contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt b/contrib/mocotest-tf/FusedBatchNorm_000/test.pbtxt
new file mode 100644 (file)
index 0000000..40cec4a
--- /dev/null
@@ -0,0 +1,158 @@
+node {
+  name: "placeholder"
+  op: "Placeholder"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "shape"
+    value {
+      shape {
+        dim {
+          size: 1
+        }
+        dim {
+          size: 4
+        }
+        dim {
+          size: 4
+        }
+        dim {
+          size: 1
+        }
+      }
+    }
+  }
+}
+node {
+  name: "scale"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 1
+          }
+        }
+        float_val: 1.0
+      }
+    }
+  }
+}
+node {
+  name: "offset"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 1
+          }
+        }
+        float_val: 0.0
+      }
+    }
+  }
+}
+node {
+  name: "FBN_01/mean"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 1
+          }
+        }
+        float_val: 0.0
+      }
+    }
+  }
+}
+node {
+  name: "FBN_01/variance"
+  op: "Const"
+  attr {
+    key: "dtype"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "value"
+    value {
+      tensor {
+        dtype: DT_FLOAT
+        tensor_shape {
+          dim {
+            size: 1
+          }
+        }
+        float_val: 1.0
+      }
+    }
+  }
+}
+node {
+  name: "FBN_01"
+  op: "FusedBatchNorm"
+  input: "placeholder"
+  input: "scale"
+  input: "offset"
+  input: "FBN_01/mean"
+  input: "FBN_01/variance"
+  attr {
+    key: "T"
+    value {
+      type: DT_FLOAT
+    }
+  }
+  attr {
+    key: "data_format"
+    value {
+      s: "NHWC"
+    }
+  }
+  attr {
+    key: "epsilon"
+    value {
+      f: 0.001
+    }
+  }
+  attr {
+    key: "is_training"
+    value {
+      b: false
+    }
+  }
+}