-
Notifications
You must be signed in to change notification settings - Fork 157
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 non-const reshape #14139
Conversation
This commit adds TFLiteRecipe for reshape which has non-const shape. ONE-DCO-Signed-off-by: Jongwon Yang <yjw963@gmail.com>
62ee74b
to
4817e55
Compare
@jongwonyang, |
The PR is ready now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment,
PTAL
=)
operation { | ||
type: "Add" | ||
input: "add_const_1" | ||
input: "add_const_2" | ||
output: "add_out" | ||
add_options { | ||
activation: NONE | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This recipe
contains another operation - Add
, in addition to the Reshape
operation.
What case was it created to test?
A recipe
that combines multiple operations like this usually uses the prefix Net_
,
for example, Net_TConv_Add_000
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This recipe is for models that have non-constant shape input.
This recipe supposed to be introduced along with the issue #1519,
but revised with the discussion #13927 (comment),
so I thought that it would be more appropriate to name it to Reshape_005 since it's not related to specific operation (like Add).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reshape_005
is OK and
also Net_blabla
is also OK to me as this recipe has more than one type of Ops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
=)
This commit adds TFLiteRecipe for reshape which has non-const shape.
Related: #1519
ONE-DCO-Signed-off-by: Jongwon Yang yjw963@gmail.com