* [mocotest-tf] test case for custom op
This is the first testcase for custom op. code for moco/loco extension will be written to pass this test.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* move into new resource dir
--- /dev/null
+# defining a list of custom ops for this compilation
+custom_op {
+ name: "my/customOp/000"
+ op: "new_custom_op"
+ attr {
+ key: "output_shape"
+ value {
+ shape {
+ dim { size: 1 }
+ dim { size: 2 }
+ dim { size: 1 }
+ dim { size: 2 }
+ }
+ }
+ }
+}
--- /dev/null
+input, Placeholder:0, TF_FLOAT, [1, 2, 1, 2]
+output, output/relu:0, TF_FLOAT, [1, 2, 1, 2]
--- /dev/null
+node {
+ name: "Placeholder"
+ op: "Placeholder"
+ attr {
+ key: "dtype" value { type: DT_FLOAT } }
+ attr {
+ key: "shape"
+ value {
+ shape {
+ dim { size: 1 }
+ dim { size: 2 }
+ dim { size: 1 }
+ dim { size: 2 }
+ }
+ }
+ }
+}
+node {
+ name: "my/customOp/000"
+ op: "new_custom_op"
+ input: "Placeholder"
+ attr {
+ key: "T"
+ value { type: DT_FLOAT }
+ }
+ attr {
+ key: "my_string"
+ value { s: "Hello World" }
+ }
+ attr {
+ key: "my_float"
+ value { f: 0.001 }
+ }
+ attr {
+ key: "my_int"
+ value { i: 111 }
+ }
+ attr {
+ key: "my_bool"
+ value { b: false }
+ }
+}
+node {
+ name: "output/relu"
+ op: "Relu"
+ input: "my/customOp/000"
+ attr {
+ key: "T"
+ value {
+ type: DT_FLOAT
+ }
+ }
+}