-
Notifications
You must be signed in to change notification settings - Fork 158
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 Multiply (#14147)
This commit adds TFLiteRecipe for dynamic shape Multiply. ONE-DCO-1.0-Signed-off-by: sunki <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 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,30 @@ | ||
operand { | ||
name: "ifm1" | ||
type: FLOAT32 | ||
shape { dim: 1 dim: 1 dim: 1 dim: 1 } | ||
shape_signature { dim: 1 dim: 1 dim: -1 dim: -1} | ||
} | ||
operand { | ||
name: "ifm2" | ||
type: FLOAT32 | ||
shape { dim: 1 dim: 1 dim: 4 dim: 1} | ||
shape_signature { dim: 1 dim: -1 dim: 4 dim: -1} | ||
} | ||
operand { | ||
name: "ofm" | ||
type: FLOAT32 | ||
shape { dim: 1 dim: 1 dim: 4 dim: 1 } | ||
shape_signature { dim: 1 dim: -1 dim: 4 dim: -1} | ||
} | ||
operation { | ||
type: "Mul" | ||
input: "ifm1" | ||
input: "ifm2" | ||
output: "ofm" | ||
mul_options { | ||
activation: NONE | ||
} | ||
} | ||
input: "ifm1" | ||
input: "ifm2" | ||
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 | ||
|
||
RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 | ||
|
||
RULE "MUL_SHAPE" $(tensor_shape ofm) '=' [1,-1,4,-1] |