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 non-const reshape #14139

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

jongwonyang
Copy link
Member

This commit adds TFLiteRecipe for reshape which has non-const shape.

Related: #1519

ONE-DCO-Signed-off-by: Jongwon Yang yjw963@gmail.com

@jongwonyang jongwonyang added PR/ready for review It is ready to review. Please review it. SSAFY labels Oct 2, 2024
@jongwonyang jongwonyang requested review from a team October 2, 2024 01:43
This commit adds TFLiteRecipe for reshape which has non-const shape.

ONE-DCO-Signed-off-by: Jongwon Yang <yjw963@gmail.com>
@shs-park
Copy link
Contributor

shs-park commented Oct 2, 2024

@jongwonyang,
Please re-request(unset and reset) the review when you are ready. 😅
It seems you are still being modifying this PR.

@jongwonyang
Copy link
Member Author

The PR is ready now :)
I've changed the name Reshape_004 to Reshape_005 because it seems there's ongoing work on Reshape_004.

@jongwonyang jongwonyang requested review from a team and removed request for a team October 2, 2024 08:07
Copy link
Contributor

@seanshpark seanshpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thank you!

Copy link
Contributor

@shs-park shs-park left a 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
=)

Comment on lines +32 to +40
operation {
type: "Add"
input: "add_const_1"
input: "add_const_2"
output: "add_out"
add_options {
activation: NONE
}
}
Copy link
Contributor

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.

Copy link
Member Author

@jongwonyang jongwonyang Oct 2, 2024

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).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation!

Copy link
Contributor

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.

Copy link
Contributor

@shs-park shs-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
=)

@seanshpark seanshpark merged commit 4eb66d9 into Samsung:master Oct 2, 2024
8 checks passed
@jongwonyang jongwonyang deleted the reshape-recipe branch October 4, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/ready for review It is ready to review. Please review it. SSAFY
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants