diff --git a/res/TensorFlowLiteRecipes/Inf_Neg_000/test.recipe b/res/TensorFlowLiteRecipes/Inf_Neg_000/test.recipe new file mode 100644 index 00000000000..fb99ed1352a --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_Neg_000/test.recipe @@ -0,0 +1,19 @@ +operand { + name: "ifm" + type: FLOAT32 + shape { dim: 1 dim: 3 dim: 3 dim: 2 } + shape_signature { dim: -1 dim: 3 dim: 3 dim :2 } +} +operand { + name: "ofm" + type: FLOAT32 + shape { dim: 1 dim: 3 dim: 3 dim: 2 } + shape_signature { dim: -1 dim: 3 dim: 3 dim: 2 } +} +operation { + type: "Neg" + input: "ifm" + output: "ofm" +} +input: "ifm" +output: "ofm" diff --git a/res/TensorFlowLiteRecipes/Inf_Neg_000/test.rule b/res/TensorFlowLiteRecipes/Inf_Neg_000/test.rule new file mode 100644 index 00000000000..bacc602a608 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_Neg_000/test.rule @@ -0,0 +1,5 @@ +# To check if dynamic dimension properly inferred + +RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 + +RULE "NEG_SHAPE" $(tensor_shape ofm) '=' [-1,3,3,2]