From 75df9a0e7ada2a632c5ec8fb3eeda61524ba0a6f Mon Sep 17 00:00:00 2001 From: HanJin Choi <156498561+Hanjin-Choi@users.noreply.github.com> Date: Mon, 7 Oct 2024 06:31:25 +0900 Subject: [PATCH] [res] Add TFLiteRecipe for dynamic shape NEG (#14158) 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]