-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[res] Add TFLiteRecipe for dynamic shape Reshape (#14162)
This commit adds TFLiteRecipe for dynamic shape Reshape. ONE-DCO-1.0-Signed-off-by: Jongwon Yang <[email protected]>
- Loading branch information
1 parent
49d45bf
commit daf9a85
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
operand { | ||
name: "ifm" | ||
type: FLOAT32 | ||
shape { dim: 2 dim: 3 dim: 4 } | ||
shape_signature { dim: 2 dim: 3 dim: 4 } | ||
} | ||
operand { | ||
name: "ofm" | ||
type: FLOAT32 | ||
shape { dim: 0 dim: 4 } | ||
shape_signature { dim: -1 dim: 4 } | ||
} | ||
operation { | ||
type: "Reshape" | ||
reshape_options { | ||
new_shape: -1 | ||
new_shape: 4 | ||
} | ||
input: "ifm" | ||
output: "ofm" | ||
} | ||
input: "ifm" | ||
output: "ofm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# To check if dynamic dimension properly inferred if option has dynamic shape | ||
|
||
RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 | ||
|
||
RULE "RESHAPE_SHAPE" $(tensor_shape ofm) '=' [6,4] |