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

[luci/pass] Introduce CanonicalizePass with Pad #13503

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

seanshpark
Copy link
Contributor

This will introduce CanonicalizePass with Pad.paddings canonicalize.

@seanshpark
Copy link
Contributor Author

@seanshpark seanshpark requested a review from a team July 25, 2024 00:41
* @brief Class to canoncalize CircleNodes
*
*/
struct CanonicalizePass final : public logo::Pass
Copy link
Contributor

@jinevening jinevening Jul 25, 2024

Choose a reason for hiding this comment

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

This pass name seems too general. This name more fits a stage, i.e., a sequence of passes (PTAL https://github.com/Samsung/ONE/pull/13503/files#r1690670613).

How about renaming to CanonicalizePaddingDtypePass, or simply ConvertS64PaddingToS32Pass ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Named this pass to do some multiple things as canonicalization.
This pass will run always without option.

changed = true;
}

// TODO add more canonicalization
Copy link
Contributor

Choose a reason for hiding this comment

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

Putting all canonicalization tasks in a single pass seems to make this pass to have too many responsibilities.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, its' about canonicalization.
When there are too many things to do, someone can split to some categorize.

This will introduce CanonicalizePass with Pad.paddings canonicalize.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
Co-authored-by: Hyukjin Jeong <[email protected]>
@seanshpark seanshpark force-pushed the luci_pass_canonicalize branch from 79fa6d0 to 65d19fd Compare July 25, 2024 01:41
@seanshpark seanshpark requested a review from jinevening July 25, 2024 01:42
Copy link
Contributor

@jinevening jinevening left a comment

Choose a reason for hiding this comment

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

https://github.com/Samsung/ONE/pull/13503/files#r1690674624 violates single responsibility principle, which would leave a technical debt.

You can go as-is if you wish.

@seanshpark seanshpark merged commit 72da2c8 into Samsung:master Jul 25, 2024
7 checks passed
@seanshpark seanshpark deleted the luci_pass_canonicalize branch July 25, 2024 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants