From 633765ece9fe0948b78b72196990d685fe64462c Mon Sep 17 00:00:00 2001 From: "Alexander Efimov/AI Tools Lab/./Samsung Electronics" Date: Tue, 8 Oct 2019 12:37:13 +0300 Subject: [PATCH] Regression test for non dilated conv2d (#7970) Test to check that convolution without dilation attribute compiles successfully Signed-off-by: Efimov Alexander --- res/TensorFlowTests/REGRESSION_0002/test.info | 2 + res/TensorFlowTests/REGRESSION_0002/test.manifest | 1 + res/TensorFlowTests/REGRESSION_0002/test.pbtxt | 70 +++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 res/TensorFlowTests/REGRESSION_0002/test.info create mode 100644 res/TensorFlowTests/REGRESSION_0002/test.manifest create mode 100644 res/TensorFlowTests/REGRESSION_0002/test.pbtxt diff --git a/res/TensorFlowTests/REGRESSION_0002/test.info b/res/TensorFlowTests/REGRESSION_0002/test.info new file mode 100644 index 0000000..c3e16f6 --- /dev/null +++ b/res/TensorFlowTests/REGRESSION_0002/test.info @@ -0,0 +1,2 @@ +input, ifm:0, TF_FLOAT, [1, 5, 5, 3] +output, ofm:0, TF_FLOAT, [1, 4, 4, 2] diff --git a/res/TensorFlowTests/REGRESSION_0002/test.manifest b/res/TensorFlowTests/REGRESSION_0002/test.manifest new file mode 100644 index 0000000..55d2852 --- /dev/null +++ b/res/TensorFlowTests/REGRESSION_0002/test.manifest @@ -0,0 +1 @@ +SUMMARY: Conv2d without dilation attribute is correct according documentation and should be compiled diff --git a/res/TensorFlowTests/REGRESSION_0002/test.pbtxt b/res/TensorFlowTests/REGRESSION_0002/test.pbtxt new file mode 100644 index 0000000..4feaab1 --- /dev/null +++ b/res/TensorFlowTests/REGRESSION_0002/test.pbtxt @@ -0,0 +1,70 @@ +node { + name: "ifm" + 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: "ker" + op: "Const" + attr { + key: "dtype" + value { type: DT_FLOAT } + } + attr { + key: "value" + value { + tensor { + dtype: DT_FLOAT + tensor_shape { + dim { size: 2 } + dim { size: 2 } + dim { size: 3 } + dim { size: 2 } + } + float_val: 1.1 + } + } + } +} +node { + name: "ofm" + op: "Conv2D" + input: "ifm" + input: "ker" + attr { + key: "T" + value { type: DT_FLOAT } + } + attr { + key: "data_format" + value { s: "NHWC" } + } + attr { + key: "padding" + value { s: "VALID" } + } + attr { + key: "strides" + value { + list { i: 1 i: 1 i: 1 i: 1 } + } + } + attr { + key: "use_cudnn_on_gpu" + value { b: false } + } +} -- 2.7.4