Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[res] Add TFLiteRecipe for Dynamic shape Range #14163

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compiler/common-artifacts/exclude.lst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ tcgenerate(FullyConnected_U8_000)
tcgenerate(GatherNd_000)
tcgenerate(GatherNd_001)
tcgenerate(Inf_Mul_000) # TestDataGenerator does not support unknown dimension
tcgenerate(Inf_Range_000) # TestDataGenerator does not support unknown dimension
tcgenerate(L2Pool2D_U8_000)
tcgenerate(Log_000)
tcgenerate(MatMul_000)
Expand Down
41 changes: 41 additions & 0 deletions res/TensorFlowLiteRecipes/Inf_Range_000/test.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# range with non-const params
operand {
name: "start"
type: FLOAT32
shape { dim: 1 }
}
operand {
name: "limit"
type: FLOAT32
shape { }
filler {
tag: "constant"
arg: "10"
}
}
operand {
name: "delta"
type: FLOAT32
shape { }
filler {
tag: "constant"
arg: "4"
}
}
operand {
name: "ofm"
type: FLOAT32
shape { dim: 1 }
shape_signature { dim : -1 }
}
operation {
type: "Range"
range_options {
}
input: "start"
input: "limit"
input: "delta"
output: "ofm"
}
input: "start"
output: "ofm"
5 changes: 5 additions & 0 deletions res/TensorFlowLiteRecipes/Inf_Range_000/test.rule
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# To check if const params properly infered

RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1

RULE "RANGE_SHAPE" $(tensor_shape ofm) '=' [-1]