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

Streamlined Rearrange in SpatialAttentionBlock #8130

Merged
merged 6 commits into from
Oct 22, 2024

Conversation

borisfom
Copy link
Contributor

@borisfom borisfom commented Oct 9, 2024

The Rearrange code failed dynamo export in 24.09 container:
pytorch/pytorch#137629
While we can't still use dynamo export with TRT in 23.09, I also noticed that my workaround improved runtime by about 1 second end-to-end for 100 seconds run.

Description

Replaced einops Rearrange with reshape/transpose

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Oct 10, 2024

PR looks good to me, please ensure the logic is covered by unit tests.
@yiheng-wang-nv @KumoLiu Please help review this PR.

Thanks.

Copy link
Contributor

@KumoLiu KumoLiu left a comment

Choose a reason for hiding this comment

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

Hi @borisfom, thanks for the update. Overall looks good to me.

We've already code freeze for version 1.4, and QA is expected to complete their testing by the end of this week. As a result, this PR may not be included in the 1.4 release. Thank you for your understanding!

@borisfom
Copy link
Contributor Author

/build

@borisfom
Copy link
Contributor Author

@KumoLiu : Sure, obviously it doesn't make it to 1.4, so the target is dev branch. Can we get it merged?

@KumoLiu
Copy link
Contributor

KumoLiu commented Oct 17, 2024

/build

@KumoLiu KumoLiu enabled auto-merge (squash) October 17, 2024 01:03
@KumoLiu
Copy link
Contributor

KumoLiu commented Oct 22, 2024

/build

@KumoLiu KumoLiu merged commit 052dbb4 into Project-MONAI:dev Oct 22, 2024
28 checks passed
@borisfom borisfom deleted the fix-rearrange branch October 22, 2024 19:40
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.

3 participants