diff --git a/res/TensorFlowLiteRecipes/Inf_Pad_000/test.recipe b/res/TensorFlowLiteRecipes/Inf_Pad_000/test.recipe new file mode 100644 index 00000000000..fdcd10d9a14 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_Pad_000/test.recipe @@ -0,0 +1,33 @@ +# padding with dynamic shape, others same as Pad_000 +operand { + name: "ifm" + type: FLOAT32 + shape { dim: 1 dim: 1 dim: 3 dim: 2 } + shape_signature { dim: 1 dim: -1 dim: 3 dim: 2 } +} +operand { + name: "padding" + type: INT32 + shape { dim: 4 dim: 2 } + filler { + tag: "explicit" + arg: "0" arg: "0" + arg: "1" arg: "1" + arg: "2" arg: "2" + arg: "0" arg: "0" + } +} +operand { + name: "ofm" + type: FLOAT32 + shape { dim: 1 dim: 1 dim: 7 dim: 2 } + shape_signature { dim: 1 dim: -1 dim: 7 dim: 2 } +} +operation { + type: "Pad" + input: "ifm" + input: "padding" + output: "ofm" +} +input: "ifm" +output: "ofm" diff --git a/res/TensorFlowLiteRecipes/Inf_Pad_000/test.rule b/res/TensorFlowLiteRecipes/Inf_Pad_000/test.rule new file mode 100644 index 00000000000..dce0a7d5b77 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_Pad_000/test.rule @@ -0,0 +1,5 @@ +# To check if dynamic dimension properly inferred + +RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 + +RULE "PAD_SHAPE" $(tensor_shape ofm) '=' [1,-1,7,2]