diff options
Diffstat (limited to 'res/TensorFlowTests/UNIT_Pad_000')
-rw-r--r-- | res/TensorFlowTests/UNIT_Pad_000/test.info | 2 | ||||
-rw-r--r-- | res/TensorFlowTests/UNIT_Pad_000/test.manifest | 8 | ||||
-rw-r--r-- | res/TensorFlowTests/UNIT_Pad_000/test.pbtxt | 81 |
3 files changed, 91 insertions, 0 deletions
diff --git a/res/TensorFlowTests/UNIT_Pad_000/test.info b/res/TensorFlowTests/UNIT_Pad_000/test.info new file mode 100644 index 000000000..e9fd5fce2 --- /dev/null +++ b/res/TensorFlowTests/UNIT_Pad_000/test.info @@ -0,0 +1,2 @@ +input, input:0, TF_FLOAT, [1, 3, 4, 4] +output, Pad:0, TF_FLOAT, [1, 3, 8, 6] diff --git a/res/TensorFlowTests/UNIT_Pad_000/test.manifest b/res/TensorFlowTests/UNIT_Pad_000/test.manifest new file mode 100644 index 000000000..d3001df34 --- /dev/null +++ b/res/TensorFlowTests/UNIT_Pad_000/test.manifest @@ -0,0 +1,8 @@ +SUMMARY: A simple network that has Constant mode Pad with default value(constant_values=0) + +# HOW TO GENERATE: +# import tensorflow as tf +# input = tf.placeholder(tf.float32, shape=[1,3,4,4], name="input") +# paddings = tf.constant([[0,0],[0,0],[2,2],[1,1]]) +# pad_const = tf.pad(input, paddings, "CONSTANT") +# tf.get_default_graph().as_graph_def() diff --git a/res/TensorFlowTests/UNIT_Pad_000/test.pbtxt b/res/TensorFlowTests/UNIT_Pad_000/test.pbtxt new file mode 100644 index 000000000..8d6a5c8aa --- /dev/null +++ b/res/TensorFlowTests/UNIT_Pad_000/test.pbtxt @@ -0,0 +1,81 @@ +node { + name: "input" + op: "Placeholder" + attr { + key: "dtype" + value { + type: DT_FLOAT + } + } + attr { + key: "shape" + value { + shape { + dim { + size: 1 + } + dim { + size: 3 + } + dim { + size: 4 + } + dim { + size: 4 + } + } + } + } +} +node { + name: "Const" + op: "Const" + attr { + key: "dtype" + value { + type: DT_INT32 + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_INT32 + tensor_shape { + dim { + size: 4 + } + dim { + size: 2 + } + } + int_val: 0 + int_val: 0 + int_val: 0 + int_val: 0 + int_val: 2 + int_val: 2 + int_val: 1 + int_val: 1 + } + } + } +} +node { + name: "Pad" + op: "Pad" + input: "input" + input: "Const" + attr { + key: "T" + value { + type: DT_FLOAT + } + } + attr { + key: "Tpaddings" + value { + type: DT_INT32 + } + } +} |