Skip to content

Commit

Permalink
[res] Add TFLiteRecipe for dynamic shape NEG (#14158)
Browse files Browse the repository at this point in the history
This commit adds TFLiteRecipe for dynamic shape NEG

ONE-DCO-1.0-Signed-off-by: HanJin Choi [email protected]
  • Loading branch information
Hanjin-Choi authored Oct 6, 2024
1 parent a661f4b commit 75df9a0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions res/TensorFlowLiteRecipes/Inf_Neg_000/test.recipe
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 5 additions & 0 deletions res/TensorFlowLiteRecipes/Inf_Neg_000/test.rule
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 75df9a0

Please sign in to comment.