-
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 Quantize (#14129)
This commit add TFLiteRecipe for dynamic shape Quantize. ONE-DCO-1.0-Signed-off-by: Bokyeong Lee <[email protected]>
- Loading branch information
1 parent
8893023
commit b8fe99d
Showing
2 changed files
with
26 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,21 @@ | ||
# quantize with dynamic shape | ||
operand { | ||
name: "ifm" | ||
type: FLOAT32 | ||
shape { dim: 4 dim: 1 } | ||
shape_signature { dim: 4 dim: -1 } | ||
} | ||
operand { | ||
name: "ofm" | ||
type: UINT8 | ||
shape { dim: 4 dim: 1 } | ||
shape_signature { dim: 4 dim: -1 } | ||
quant { min: 0 max: 255 scale: 1.0 zero_point: 0 } | ||
} | ||
operation { | ||
type: "Quantize" | ||
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 shape properly infered | ||
|
||
RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 | ||
|
||
RULE "RANGE_SHAPE" $(tensor_shape ofm) '=' [4,-1] |