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-interpreter] Relax Transpose rank limitations #14512

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

mbencer
Copy link
Contributor

@mbencer mbencer commented Jan 2, 2025

This commit removes assert that limit Transpose rank to 4. TF 2.8 allows to inference this operator with rank 5.

ONE-DCO-1.0-Signed-off-by: Mateusz Bencer [email protected]

Issue: #14511

This commit removes assert that limit Transpose rank to 4. TF 2.8 allows to inference this operator with rank 5.

ONE-DCO-1.0-Signed-off-by: Mateusz Bencer [email protected]
@mbencer mbencer requested a review from a team January 2, 2025 08:11
@@ -39,7 +39,7 @@ void Transpose::configure()
int dims = input()->shape().num_dims();
const int32_t *perm_data = getTensorData<int32_t>(perm());

assert(input()->shape().num_dims() <= 4);
assert(input()->shape().num_dims() <= 5);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

LGTM

@jinevening jinevening merged commit 548c522 into Samsung:master Jan 3, 2025
8 checks passed
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