-
Notifications
You must be signed in to change notification settings - Fork 159
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 FullyConnected dynamic shape
This commit adds TFLiteRecipe for FullyConnected dynamic shape. ONE-DCO-1.0-Signed-off-by: HanJin Choi [email protected]
- Loading branch information
1 parent
eb72364
commit 86f7fb7
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
res/TensorFlowLiteRecipes/Inf_FullyConnected_000/test.recipe
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,45 @@ | ||
operand { | ||
name: "ifm" | ||
type: FLOAT32 | ||
shape { dim: 1 dim: 2 dim: 3 } | ||
shape_signature { dim: -1 dim: 2 dim: 3} | ||
} | ||
operand { | ||
name: "weight" | ||
type: FLOAT32 | ||
shape { dim: 4 dim: 3 } | ||
filler { | ||
tag: "gaussian" | ||
arg: "0.0" | ||
arg: "1.0" | ||
} | ||
} | ||
operand { | ||
name: "bias" | ||
type: FLOAT32 | ||
shape { dim: 4 } | ||
filler { | ||
tag: "gaussian" | ||
arg: "0.0" | ||
arg: "1.0" | ||
} | ||
} | ||
operand { | ||
name: "ofm" | ||
type: FLOAT32 | ||
shape { dim: 1 dim: 4 } | ||
shape_signature { dim: -1 dim: 4 } | ||
} | ||
operation { | ||
type: "FullyConnected" | ||
fullyconnected_options { | ||
activation: NONE | ||
keep_num_dims: false | ||
} | ||
input: "ifm" | ||
input: "weight" | ||
input: "bias" | ||
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 | ||
|
||
RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 | ||
|
||
RULE "FC_SHAPE" $(tensor_shape ofm) '=' [-1,4] |