This commit adds test cases with Const operation.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
--- /dev/null
+output, const/float:0, TF_FLOAT, [2, 3]
--- /dev/null
+node {
+ name: "const/float"
+ op: "Const"
+ attr {
+ key: "dtype"
+ value {
+ type: DT_FLOAT
+ }
+ }
+ attr {
+ key: "value"
+ value {
+ tensor {
+ dtype: DT_FLOAT
+ tensor_shape {
+ dim {
+ size: 2
+ }
+ dim {
+ size: 3
+ }
+ }
+ float_val: 1.1
+ float_val: 2.2
+ float_val: 3.3
+ float_val: 4.4
+ float_val: 5.5
+ float_val: 6.6
+ }
+ }
+ }
+}
--- /dev/null
+output, const/int32:0, TF_INT32, [2, 3]
--- /dev/null
+node {
+ name: "const/int32"
+ op: "Const"
+ attr {
+ key: "dtype"
+ value {
+ type: DT_INT32
+ }
+ }
+ attr {
+ key: "value"
+ value {
+ tensor {
+ dtype: DT_INT32
+ tensor_shape {
+ dim {
+ size: 2
+ }
+ dim {
+ size: 3
+ }
+ }
+ int_val: 1
+ int_val: 2
+ int_val: 3
+ int_val: 4
+ int_val: 5
+ int_val: 6
+ }
+ }
+ }
+}