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

[onert] Remove Permute IR handling in general backend #13594

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

hseok-oh
Copy link
Contributor

@hseok-oh hseok-oh commented Aug 5, 2024

This commit removes Permute IR handling in acl backends.
This IR is handled on builtin backend only because layout changes in backend is not available feature any more.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh [email protected]


Related issue: #12130 #13494

@hseok-oh hseok-oh added the PR/ready for review It is ready to review. Please review it. label Aug 5, 2024
@hseok-oh hseok-oh requested a review from a team August 5, 2024 11:31
This commit removes Permute IR handling in acl backends.
This IR is handled on builtin backend only because layout changes in backend is not available feature any more.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
@hseok-oh hseok-oh force-pushed the remove_permute_backend branch from f8014e9 to b96d147 Compare August 5, 2024 23:45
Copy link
Contributor

@ragmani ragmani left a comment

Choose a reason for hiding this comment

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

LGTM

const backend::Backend *permute_node_backend = compiler::BackendManager::get().getBuiltin();
assert(permute_node_backend->config()->id() == onert::backend::builtin::Config::ID);
assert(input_backend != backend);
Copy link
Contributor

Choose a reason for hiding this comment

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

(Q) Why should not those backends be the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PermutationInsertionPass was introduced for

  1. Layout change between use-def
  2. Backend change between use-def

Now 1) is impossible. So insertPermute is called when backend is changed.

Copy link
Contributor

@jyoungyun jyoungyun left a comment

Choose a reason for hiding this comment

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

LGTM

@hseok-oh hseok-oh merged commit d2ca249 into Samsung:master Aug 6, 2024
9 checks passed
@hseok-oh hseok-oh deleted the remove_permute_backend branch August 6, 2024 09:51
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants