From ead9f9185ac840810c4c15117d5bc7a2aace5212 Mon Sep 17 00:00:00 2001 From: Hanjin Choi Date: Mon, 30 Sep 2024 14:49:17 +0900 Subject: [PATCH] [res] Add TFLiteRecipe for dynamic shape NEG This commit adds TFLiteRecipe for dynamic shape NEG ONE-DCO-1.0-Signed-off-by: HanJin Choi hanjin4647@gmail.com --- .../Inf_Neg_000/test.recipe | 19 +++++++++++++++++++ .../Inf_Neg_000/test.rule | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 res/TensorFlowLiteRecipes/Inf_Neg_000/test.recipe create mode 100644 res/TensorFlowLiteRecipes/Inf_Neg_000/test.rule 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]